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

Added is_empty() method to transaction class

Method is_empty() can be determined if there have no been changes
to the transaction.
This commit is contained in:
Teemu Ollakka
2018-10-26 11:47:44 +03:00
parent 5391de0474
commit d4efa598bb
4 changed files with 12 additions and 1 deletions

View File

@ -1229,7 +1229,6 @@ int wsrep::transaction::certify_commit(
append_sr_keys_for_commit();
flags(flags() | wsrep::provider::flag::pa_unsafe);
}
sr_keys_.clear();
flags(flags() | wsrep::provider::flag::commit);
@ -1462,6 +1461,7 @@ void wsrep::transaction::cleanup()
flags_ = 0;
certified_ = false;
pa_unsafe_ = false;
sr_keys_.clear();
streaming_context_.cleanup();
client_service_.cleanup_transaction();
debug_log_state("cleanup_leave");