1
0
Fork 0
forked from blue/lmdbal

Some refactor

This commit is contained in:
Blue 2025-01-05 18:39:36 +02:00
parent bfb1d007ad
commit 3ae1fd15c0
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
5 changed files with 50 additions and 40 deletions

View file

@ -27,6 +27,7 @@ class CursorCommon;
class Transaction {
friend class Base;
friend class StorageCommon;
friend class CursorCommon;
public:
explicit Transaction();
explicit Transaction(Transaction&& other);
@ -44,10 +45,10 @@ protected:
void closeCursors();
protected:
TransactionID txn; /**<\brief Transaction inner handler*/
bool active; /**<\brief Transaction state*/
const Base* parent; /**<\brief Pointer to the database this transaction belongs to*/
std::map<uint32_t, CursorCommon*> cursors; /**<\brief a collection of cursors curently opened under this transaction*/
TransactionID txn; /**<\brief Transaction inner handler*/
bool active; /**<\brief Transaction state*/
const Base* parent; /**<\brief Pointer to the database this transaction belongs to*/
mutable std::map<uint32_t, CursorCommon*> cursors; /**<\brief a collection of cursors curently opened under this transaction*/
};
class WriteTransaction : public Transaction {