1
0
Fork 0
forked from blue/lmdbal

Transactions now get closed with the database

This commit is contained in:
Blue 2024-12-22 19:39:35 +02:00
parent 56d35d4832
commit 68ea7df6a9
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
9 changed files with 118 additions and 34 deletions

View file

@ -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();