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
2010-09-27 00:20:56 +02:00
parent 894b2081b3
commit a9e9a2c884
11 changed files with 172 additions and 241 deletions

View File

@@ -16,8 +16,6 @@ class WDBThreadStartReq1 : public ACE_Method_Request
virtual int call()
{
WorldDatabase.Init_MySQL_Connection();
CharacterDatabase.Init_MySQL_Connection();
return 0;
}
};
@@ -32,8 +30,6 @@ class WDBThreadEndReq1 : public ACE_Method_Request
virtual int call()
{
WorldDatabase.End_MySQL_Connection();
CharacterDatabase.End_MySQL_Connection();
return 0;
}
};