Skip to content

Commit 546c13e

Browse files
Workaround for RecoverPreparedTransactions()
Force overwriteOK = true while we investigate deeper fix Proposed by Tom Lane as temporary measure, accepted by me
1 parent 8463880 commit 546c13e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/transam/twophase.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1956,7 +1956,7 @@ RecoverPreparedTransactions(void)
19561956
* hierarchy, but there's no need to restore that exactly.
19571957
*/
19581958
for (i = 0; i < hdr->nsubxacts; i++)
1959-
SubTransSetParent(subxids[i], xid, overwriteOK);
1959+
SubTransSetParent(subxids[i], xid, true);
19601960

19611961
/*
19621962
* Recreate its GXACT and dummy PGPROC. But, check whether

0 commit comments

Comments
 (0)