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

Fix cleanup for non-prepared XA transactions

Cleanup XA transaction which is marked as prepared in DBMS, but not in
wsrep-lib side. This may happen if the DBMS runs with wsrep disabled.
This commit is contained in:
Daniele Sciascia
2022-04-08 14:44:22 +02:00
parent 23fb862462
commit 8bfce04189
2 changed files with 10 additions and 6 deletions

View File

@ -633,7 +633,7 @@ namespace wsrep
void xa_detach()
{
assert(mode_ == m_local);
assert(state_ == s_none || state_ == s_exec);
assert(state_ == s_none || state_ == s_exec || state_ == s_quitting);
transaction_.xa_detach();
}