Core/DBLayer:

- DB Threading model update
* Get rid of ThreadBundleMask and bundled connection
* Implement configurable amount of Synch threads for databasepools
* Use modulus based algorithm to check for free synchronous connections instead of previous ¨get connection by thread key or bundlemask¨ feature
* Locks on mysql context objects are now managed outside the mysql query methods

Fixes issue #4058
Fixes issue #4059
Introduces a ton of more issues. Use at own risk. You were warned. Really.

Don´t forget to update your worldserver.conf

--HG--
branch : trunk
This commit is contained in:
Machiavelli committed 2010-09-27 00:20:56 +02:00
1 parent 894b2081b3
commit a9e9a2c884
11 files changed
+172 -241

No files matched your search

@@ -35,8 +35,6 @@ int DatabaseWorker::svc()
if (!m_queue)
return -1;
MySQL::Thread_Init();
SQLOperation *request = NULL;
while (1)
{
@@ -50,8 +48,7 @@ int DatabaseWorker::svc()
delete request;
}
MySQL::Thread_End();
delete m_conn;
m_conn->Close();
return 0;
}