1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-31 18:24:25 +03:00

codership/wsrep-lib#90 Fixed assertion in before_commit()

Added unit test which makes assertion to fail if the fix is not
present.
This commit is contained in:
Teemu Ollakka
2019-02-24 12:05:58 +02:00
parent 9bec7d940c
commit c61811ed70
2 changed files with 23 additions and 1 deletions

View File

@ -373,7 +373,8 @@ int wsrep::transaction::before_commit()
||
(state() == s_must_abort ||
state() == s_must_replay ||
state() == s_cert_failed));
state() == s_cert_failed ||
state() == s_aborted));
}
else if (state() != s_committing)
{