1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-30 07:23:07 +03:00

Add method transaction::has_key()

Add a method to check if transaction has appended a given key
in its sr_key_set.
This commit is contained in:
Daniele Sciascia
2024-12-24 11:54:29 +01:00
parent 1c61b809d1
commit fd1128622f
6 changed files with 103 additions and 0 deletions

View File

@ -36,6 +36,7 @@ namespace wsrep
: root_()
{ }
void insert(const wsrep::key& key);
bool contains(const wsrep::key& key) const;
const branch_type& root() const { return root_; }
void clear();
bool empty() const { return root_.empty(); }

View File

@ -171,6 +171,8 @@ namespace wsrep
int append_key(const wsrep::key&);
bool has_key(const wsrep::key&) const;
int append_data(const wsrep::const_buffer&);
int after_row();