aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Database/Transaction.h
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-12-04 21:50:36 +0100
committerMachiavelli <none@none>2010-12-04 21:50:36 +0100
commitf5d6319d4ddd35a9be9ea886aa119465360e397e (patch)
tree5bd50f42122443fd93e81d40e07adbc2f589a21b /src/server/shared/Database/Transaction.h
parentb8bf37264b4a947e66fe29b29eb9b60ebe3d6f3c (diff)
Core/DBLayer:
- Make the mysql connectionpool shared for async and syncrhonous connections. - Allow configurable amount of connections for the pool - Allow configurable amount of delaythreads Note that delaythreads now only represent in-core threads. Whenever they execute a task they will pick a free connection from the pool instead of using their previously unique assigned connection. The purpose of this design change is better distribution of SQL requests (no bottlenecks paired with idling) among available resources. This also prevents a ¨memory waste¨ of preparing async prepared statements on synchronous connections (that were never called) - and vice versa. Now, connections aren´t explicitly async or synchronous, they serve both purposes. Use at own risk, might cause instabilities. Don´t forget to update your config files and clear your cmake cache. --HG-- branch : trunk
Diffstat (limited to 'src/server/shared/Database/Transaction.h')
-rwxr-xr-xsrc/server/shared/Database/Transaction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/shared/Database/Transaction.h b/src/server/shared/Database/Transaction.h
index 8bdb11541e7..e8200f9810a 100755
--- a/src/server/shared/Database/Transaction.h
+++ b/src/server/shared/Database/Transaction.h
@@ -49,7 +49,7 @@ typedef ACE_Refcounted_Auto_Ptr<Transaction, ACE_Null_Mutex> SQLTransaction;
class TransactionTask : public SQLOperation
{
template <class T> friend class DatabaseWorkerPool;
- friend class DatabaseWorker;
+ template <class T> friend class DatabaseWorker;
public:
TransactionTask(SQLTransaction trans) : m_trans(trans) {} ;