Skip to content

Commit 8a957a4

Browse files
committed
Fix wrong assertion in MtmEndTransaction().
MtmBroadcastPollMessage() also happens when old prepared tx are restored, but we are still in DISABLED mode. So it is legal to finish in-progress transaction.
1 parent be9bd5b commit 8a957a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ MtmEndTransaction(MtmCurrentTrans* x, bool commit)
15311531
(commit ? "commit" : "rollback"), ts->gid, ts->xid, ts->gtid.node, ts->gtid.xid, MtmTxnStatusMnem[ts->status]);
15321532
if (commit) {
15331533
if (!(ts->status == TRANSACTION_STATUS_UNKNOWN
1534-
|| (ts->status == TRANSACTION_STATUS_IN_PROGRESS && Mtm->status == MTM_RECOVERY)))
1534+
|| (ts->status == TRANSACTION_STATUS_IN_PROGRESS && Mtm->status <= MTM_RECOVERY)))
15351535
{
15361536
MtmUnlock();
15371537
MTM_ELOG(ERROR, "Attempt to commit %s transaction %s (%llu)",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy