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

added new transaction state: s_waiting_for_replayers

to make it posisble to diagnose from outside, if potential
BF victim transaction is blocked in replayer wait loop (before entering commit phase).
Also, added new forced state change to s_must_abort, if before_rollback() is used
for a transaction in s_committing state. Such situation can happen, if BF abort happens
for a victim, which has passed certification and moved to commit phase before the BF aborting happens.
This commit is contained in:
sjaakola
2021-10-01 12:11:29 +03:00
parent 6fd1fdf690
commit 8c7a003761
2 changed files with 32 additions and 18 deletions

View File

@ -58,6 +58,7 @@ namespace wsrep
s_aborting,
s_aborted,
s_must_replay,
s_waiting_for_replayers,
s_replaying
};
static const int n_states = s_replaying + 1;
@ -299,6 +300,7 @@ namespace wsrep
case wsrep::transaction::s_aborting: return "aborting";
case wsrep::transaction::s_aborted: return "aborted";
case wsrep::transaction::s_must_replay: return "must_replay";
case wsrep::transaction::s_waiting_for_replayers: return "waiting_for_replayers";
case wsrep::transaction::s_replaying: return "replaying";
}
return "unknown";