diff options
author | raczman <none@none> | 2009-06-25 15:56:45 +0200 |
---|---|---|
committer | raczman <none@none> | 2009-06-25 15:56:45 +0200 |
commit | b8a1ffcf5022477402cea9bfee2b9ddcd830513e (patch) | |
tree | 73ea62ebb1ef231b870eb05f94a594a73e3b9dfc /src/shared/Database/DatabaseMysql.h | |
parent | e92f3cf01fb618505f3600a9a291c33b12aa5e63 (diff) |
Implemented separate connection for SqlDelayThread
This should result in less locking when accessing database,
and improved performance.
* Changed SqlDelay queue type to monitored queue,
and removed 10ms check period.
thanks to Derex, mknjc, Jeniczek and Christyan for ideas and tests.
--HG--
branch : trunk
Diffstat (limited to 'src/shared/Database/DatabaseMysql.h')
-rw-r--r-- | src/shared/Database/DatabaseMysql.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/Database/DatabaseMysql.h b/src/shared/Database/DatabaseMysql.h index 1826a08f2aa..2dee259193e 100644 --- a/src/shared/Database/DatabaseMysql.h +++ b/src/shared/Database/DatabaseMysql.h @@ -45,8 +45,8 @@ class TRINITY_DLL_SPEC DatabaseMysql : public Database //! Initializes Mysql and connects to a server. /*! infoString should be formated like hostname;username;password;database. */ - bool Initialize(const char *infoString); - void InitDelayThread(); + bool Initialize(const char *infoString, bool initDelayThread = true); + void InitDelayThread(const char* infoString); void HaltDelayThread(); QueryResult* Query(const char *sql); bool Execute(const char *sql); |