mirror of https://gitee.com/bigwinds/arangodb
move _hasOperations flag into engine
This commit is contained in:
parent
2532627a80
commit
72fa7ac85d
|
@ -52,7 +52,8 @@ static inline MMFilesLogfileManager* GetMMFilesLogfileManager() {
|
|||
/// @brief transaction type
|
||||
MMFilesTransactionState::MMFilesTransactionState(TRI_vocbase_t* vocbase)
|
||||
: TransactionState(vocbase),
|
||||
_rocksTransaction(nullptr) {}
|
||||
_rocksTransaction(nullptr),
|
||||
_hasOperations(false) {}
|
||||
|
||||
/// @brief free a transaction container
|
||||
MMFilesTransactionState::~MMFilesTransactionState() {
|
||||
|
|
|
@ -106,6 +106,7 @@ class MMFilesTransactionState final : public TransactionState {
|
|||
|
||||
private:
|
||||
rocksdb::Transaction* _rocksTransaction;
|
||||
bool _hasOperations;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
#include "StorageEngine/StorageEngine.h"
|
||||
#include "StorageEngine/TransactionCollection.h"
|
||||
#include "Transaction/Methods.h"
|
||||
#include "VocBase/LogicalCollection.h"
|
||||
#include "VocBase/modes.h"
|
||||
#include "VocBase/ticks.h"
|
||||
|
||||
using namespace arangodb;
|
||||
|
@ -46,7 +44,6 @@ TransactionState::TransactionState(TRI_vocbase_t* vocbase)
|
|||
_hints(),
|
||||
_nestingLevel(0),
|
||||
_allowImplicit(true),
|
||||
_hasOperations(false),
|
||||
_waitForSync(false),
|
||||
_beginWritten(false),
|
||||
_timeout(transaction::Methods::DefaultLockTimeout) {}
|
||||
|
|
|
@ -146,7 +146,6 @@ class TransactionState {
|
|||
transaction::Hints _hints; // hints;
|
||||
int _nestingLevel;
|
||||
bool _allowImplicit;
|
||||
bool _hasOperations;
|
||||
bool _waitForSync; // whether or not the transaction had a synchronous op
|
||||
bool _beginWritten; // whether or not the begin marker was already written
|
||||
double _timeout; // timeout for lock acquisition
|
||||
|
|
Loading…
Reference in New Issue