Content-Length: 274412 | pFad | http://github.com/postgrespro/postgres_cluster/commit/515af130be4f3e3770684dd9f10ff656409c862d

A3 Do not call SetPreparedTransactionState() from master · postgrespro/postgres_cluster@515af13 · GitHub
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(replorigen_session_origen == 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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/515af130be4f3e3770684dd9f10ff656409c862d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy