Return proper MySQL connection for syncrhonous requests based on calling thread instead of bundled connection.

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-08-20 12:44:08 +02:00
parent 24d752e782
commit a3270e79e3
2 changed files with 4 additions and 2 deletions
@@ -258,7 +258,7 @@ MySQLConnection* DatabaseWorkerPool::GetConnection()
ACE_Guard<ACE_Thread_Mutex> guard(m_connectionMap_mtx);
itr = m_sync_connections.find(ACE_Based::Thread::current());
if (itr != m_sync_connections.end())
conn = itr->second;
return itr->second;
}
/*! Bundled threads */
conn = m_bundle_conn;