Skip to content

Commit 5c416ba

Browse files
simonat2ndQuadrantkelvich
authored andcommitted
Workaround for RecoverPreparedTransactions()
Force overwriteOK = true while we investigate deeper fix Proposed by Tom Lane as temporary measure, accepted by me
1 parent 1046367 commit 5c416ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/transam/twophase.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2150,7 +2150,7 @@ RecoverPreparedTransactions(void)
21502150
* hierarchy, but there's no need to restore that exactly.
21512151
*/
21522152
for (i = 0; i < hdr->nsubxacts; i++)
2153-
SubTransSetParent(subxids[i], xid, overwriteOK);
2153+
SubTransSetParent(subxids[i], xid, true);
21542154

21552155
/*
21562156
* Recreate its GXACT and dummy PGPROC. But, check whether

0 commit comments

Comments
 (0)