1
0
Fork 0

Provide increaseNumbers in TransactionBase.

This commit is contained in:
Max Neunhoeffer 2014-07-01 14:02:10 +02:00
parent 604ee2d390
commit 5d39caa6a7
1 changed files with 12 additions and 0 deletions

View File

@ -218,6 +218,18 @@ namespace triagens {
#endif
}
////////////////////////////////////////////////////////////////////////////////
/// @brief increase counters, used in replication client in shutdown to
/// kill transactions of other threads.
////////////////////////////////////////////////////////////////////////////////
static void increaseNumbers (int numberInScope, int numberActive) {
#ifdef TRI_ENABLE_MAINTAINER_MODE
_numberTrxInScope += numberInScope;
_numberTrxActive += numberActive;
#endif
}
////////////////////////////////////////////////////////////////////////////////
/// @brief assert that a transaction object is in scope in the current thread
////////////////////////////////////////////////////////////////////////////////