]> granicus.if.org Git - postgresql/commitdiff
Workaround for RecoverPreparedTransactions()
authorSimon Riggs <simon@2ndQuadrant.com>
Sun, 23 Apr 2017 21:12:01 +0000 (22:12 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Sun, 23 Apr 2017 21:12:01 +0000 (22:12 +0100)
Force overwriteOK = true while we investigate deeper fix

Proposed by Tom Lane as temporary measure, accepted by me

src/backend/access/transam/twophase.c

index 79b3957d08bb94c48f0a35389faaa8c352de5829..fa7124d90394c302fabd0b2a70e991c1a3ef3bbd 100644 (file)
@@ -1956,7 +1956,7 @@ RecoverPreparedTransactions(void)
                 * hierarchy, but there's no need to restore that exactly.
                 */
                for (i = 0; i < hdr->nsubxacts; i++)
-                       SubTransSetParent(subxids[i], xid, overwriteOK);
+                       SubTransSetParent(subxids[i], xid, true);
 
                /*
                 * Recreate its GXACT and dummy PGPROC. But, check whether