Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8a957a4

Browse files
committed
Fix wrong assertion in MtmEndTransaction().
MtmBroadcastPollMessage() also happens when old prepared tx arerestored, but we are still in DISABLED mode. So it is legalto finish in-progress transaction.
1 parentbe9bd5b commit8a957a4

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)

[8]ページ先頭

©2009-2025 Movatter.jp