forked from blue/lmdbal
Transactions now get closed with the database
This commit is contained in:
parent
56d35d4832
commit
68ea7df6a9
9 changed files with 118 additions and 34 deletions
|
@ -39,6 +39,7 @@ public:
|
|||
|
||||
protected:
|
||||
Transaction(TransactionID txn, const Base* parent);
|
||||
void reset();
|
||||
|
||||
protected:
|
||||
TransactionID txn; /**<\brief Transaction inner handler*/
|
||||
|
@ -53,6 +54,7 @@ public:
|
|||
explicit WriteTransaction(WriteTransaction&& other);
|
||||
WriteTransaction(const WriteTransaction& other) = delete;
|
||||
WriteTransaction& operator = (const WriteTransaction& other) = delete;
|
||||
WriteTransaction& operator = (WriteTransaction&& other);
|
||||
|
||||
void commit();
|
||||
void abort();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue