diff options
| author | Machiavelli <none@none> | 2010-09-27 00:20:56 +0200 |
|---|---|---|
| committer | Machiavelli <none@none> | 2010-09-27 00:20:56 +0200 |
| commit | a9e9a2c8848c22e4a3e3b7bab0caeca25d9ea408 (patch) | |
| tree | a7c4960796d0a9a42cb1e0252d4a75c4436d1f01 /src/server/game/Server | |
| parent | 894b2081b3837575bd44c71ea4ebc76008b5b5e3 (diff) | |
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
Diffstat (limited to 'src/server/game/Server')
| -rw-r--r-- | src/server/game/Server/WorldSocketMgr.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/server/game/Server/WorldSocketMgr.cpp b/src/server/game/Server/WorldSocketMgr.cpp index 7422170fa59..a7778f9405e 100644 --- a/src/server/game/Server/WorldSocketMgr.cpp +++ b/src/server/game/Server/WorldSocketMgr.cpp @@ -158,16 +158,6 @@ class ReactorRunnable : protected ACE_Task_Base { sLog.outStaticDebug ("Network Thread Starting"); - bool needInit = true; - if (!(LoginDatabase.GetBundleMask() & MYSQL_BUNDLE_RAR)) - { - LoginDatabase.Init_MySQL_Connection(); - needInit = false; - } - - if (needInit) - MySQL::Thread_Init(); - ACE_ASSERT (m_Reactor); SocketSet::iterator i, t; @@ -203,13 +193,6 @@ class ReactorRunnable : protected ACE_Task_Base } } - ///- Free MySQL thread resources and deallocate lingering connections - if (!(LoginDatabase.GetBundleMask() & MYSQL_BUNDLE_RAR)) - LoginDatabase.End_MySQL_Connection(); - - if (needInit) - MySQL::Thread_End(); - sLog.outStaticDebug ("Network Thread Exitting"); return 0; |
