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

Commit3aab7f4

Browse files
committed
Merge branch 'master' of github.com:postgrespro/postgres_cluster
2 parents6bec9bd +df7106d commit3aab7f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎contrib/mmts/multimaster.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ MtmEndTransaction(MtmCurrentTrans* x, bool commit)
923923
Assert(Mtm->status!=MTM_RECOVERY);
924924
/*
925925
* Send notification only if ABORT happens during transaction processing at replicas,
926-
* do not send notification if ABORT isreceiver from master
926+
* do not send notification if ABORT isreceived from master
927927
*/
928928
MTM_LOG1("%d: send ABORT notification abort transaction %d to coordinator %d",MyProcPid,x->gtid.xid,x->gtid.node);
929929
if (ts==NULL) {
@@ -1378,7 +1378,7 @@ bool MtmRefreshClusterStatus(bool nowait)
13781378
MtmCheckQuorum();
13791379
/* Interrupt voting for active transaction and abort them */
13801380
for (ts=Mtm->transListHead;ts!=NULL;ts=ts->next) {
1381-
if (!ts->votingCompleted) {
1381+
if (!ts->votingCompleted&&MtmIsCoordinator(ts)) {
13821382
if (ts->status!=TRANSACTION_STATUS_ABORTED) {
13831383
MTM_LOG1("1) Rollback active transaction %d:%d:%d",ts->gtid.node,ts->gtid.xid,ts->xid);
13841384
MtmAbortTransaction(ts);
@@ -1444,7 +1444,7 @@ void MtmOnNodeDisconnect(int nodeId)
14441444
MtmCheckQuorum();
14451445
/* Interrupt voting for active transaction and abort them */
14461446
for (ts=Mtm->transListHead;ts!=NULL;ts=ts->next) {
1447-
if (!ts->votingCompleted) {
1447+
if (!ts->votingCompleted&&MtmIsCoordinator(ts)) {
14481448
if (ts->status!=TRANSACTION_STATUS_ABORTED) {
14491449
MTM_LOG1("2) Rollback active transaction %d:%d",ts->gtid.node,ts->gtid.xid);
14501450
MtmAbortTransaction(ts);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp