mirror of https://gitee.com/bigwinds/arangodb
Provide increaseNumbers in TransactionBase.
This commit is contained in:
parent
604ee2d390
commit
5d39caa6a7
|
@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue