debug_msg_connectionpool.diff

Martin Dobias, 2014-04-28 03:55 AM

Download (1.08 KB)

View differences:

src/core/qgsconnectionpool.h
207 207
    T acquireConnection( const QString& connInfo )
208 208
    {
209 209
      mMutex.lock();
210
      QgsDebugMsg( "ACQUIRE: " + connInfo );
210 211
      typename T_Groups::iterator it = mGroups.find( connInfo );
211 212
      if ( it == mGroups.end() )
212 213
      {
214
        QgsDebugMsg( "ACQUIRE new group: " + connInfo );
213 215
        it = mGroups.insert( connInfo, new T_Group( connInfo ) );
214 216
      }
215 217
      T_Group* group = *it;
......
222 224
    void releaseConnection( T conn )
223 225
    {
224 226
      mMutex.lock();
225
      typename T_Groups::iterator it = mGroups.find( qgsConnectionPool_ConnectionToName( conn ) );
227
      QString connInfo = qgsConnectionPool_ConnectionToName( conn );
228
      QgsDebugMsg( "RELEASE: " + connInfo );
229
      typename T_Groups::iterator it = mGroups.find( connInfo );
226 230
      Q_ASSERT( it != mGroups.end() );
227 231
      T_Group* group = *it;
228 232
      mMutex.unlock();