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

Track commit states for read-only transactions

Read-only transactions which don't produce any changes were
not tracker properly. Added tracking for read-only transaction
commit states. One phase commit is assumed.
This commit is contained in:
Teemu Ollakka
2023-04-04 09:36:17 +03:00
parent 3115584c66
commit 12c8069f09
3 changed files with 60 additions and 2 deletions

View File

@ -238,6 +238,8 @@ namespace wsrep
wsrep::provider& provider();
void flags(int flags) { flags_ = flags; }
bool is_read_only() const;
int before_commit_local_read_only(wsrep::unique_lock<wsrep::mutex>&);
int before_commit_local(wsrep::unique_lock<wsrep::mutex>&);
int before_commit_high_priority(wsrep::unique_lock<wsrep::mutex>&);
// Return true if the transaction must abort, is aborting,