diff options
author | Machiavelli <none@none> | 2010-08-21 03:19:25 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2010-08-21 03:19:25 +0200 |
commit | 994186f2672547761392c71ed15ded2a83e8c20d (patch) | |
tree | 53eec0c7571642b9490d2a664671cb216a730993 /src/server/shared/Database/DatabaseEnv.h | |
parent | a7498d2f560e24b2ae3b4f6cc46ea2223a41e16f (diff) |
DB Layer:
- Make SQL Transactions actual objects used in code. (Thanks to Derex for the idea)
* Uncommitted transactions will be automatically rolled back and cleaned up using ACE_Refcounted_Auto_Ptr, so no need to call Rollback() in the code.
* Prevents recursive transactions and makes developers aware of transactions going on.
* Gets rid of unneccesary overhead iterating over a concurrent map.
- Some cleanups in affected code, including better usage of transaction control in AH / mail related code to prevent data loss.
*** Experimental, use at own risk, recommended to backup your DBs. ***
--HG--
branch : trunk
Diffstat (limited to 'src/server/shared/Database/DatabaseEnv.h')
-rw-r--r-- | src/server/shared/Database/DatabaseEnv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/shared/Database/DatabaseEnv.h b/src/server/shared/Database/DatabaseEnv.h index a878a358760..d6aa7dc9b41 100644 --- a/src/server/shared/Database/DatabaseEnv.h +++ b/src/server/shared/Database/DatabaseEnv.h @@ -30,8 +30,10 @@ #include "DatabaseWorkerPool.h" #include "MySQLThreading.h" +#include "Transaction.h" typedef DatabaseWorkerPool DatabaseType; + #define _LIKE_ "LIKE" #define _TABLE_SIM_ "`" #define _CONCAT3_(A,B,C) "CONCAT( " A " , " B " , " C " )" |