Skip to content

Commit 515af13

Browse files
committed
Do not call SetPreparedTransactionState() from master
1 parent c5d6c7c commit 515af13

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

arbiter.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,17 +1077,10 @@ static void MtmReceiver(Datum arg)
10771077
if (ts->isTwoPhase) {
10781078
MtmWakeUpBackend(ts);
10791079
} else if (MtmUseDtm) {
1080-
ts->votedMask = 0;
10811080
MTM_TXTRACE(ts, "MtmTransReceiver send MSG_PRECOMMIT");
10821081
Assert(replorigin_session_origin == InvalidRepOriginId);
1083-
MTM_LOG2("SetPreparedTransactionState for %s", ts->gid);
1084-
MtmUnlock();
1085-
MtmResetTransaction();
1086-
StartTransactionCommand();
1087-
SetPreparedTransactionState(ts->gid, MULTIMASTER_PRECOMMITTED);
1088-
CommitTransactionCommand();
1089-
Assert(!MtmTransIsActive());
1090-
MtmLock(LW_EXCLUSIVE);
1082+
ts->isPrepared = false;
1083+
SetLatch(&ProcGlobal->allProcs[ts->procno].procLatch);
10911084
} else {
10921085
ts->status = TRANSACTION_STATUS_UNKNOWN;
10931086
MtmWakeUpBackend(ts);

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