Re-Add hunk initalizing replication slots in StartupXLOG(), slipped to a later patch.
authorAndres Freund <andres@anarazel.de>
Tue, 28 Jan 2014 18:48:26 +0000 (19:48 +0100)
committerAndres Freund <andres@anarazel.de>
Tue, 28 Jan 2014 18:48:26 +0000 (19:48 +0100)
src/backend/access/transam/xlog.c

index c420fc38296e8a1e6af20c2fe524e27be9f4d948..7f787a5a1cd8322ffaf7514343d1aefc0b84c4af 100644 (file)
@@ -6542,6 +6542,12 @@ StartupXLOG(void)
        XLogCtl->ckptXidEpoch = checkPoint.nextXidEpoch;
        XLogCtl->ckptXid = checkPoint.nextXid;
 
+       /*
+        * Initialize replication slots, before there's a chance to remove
+        * required resources.
+        */
+       StartupReplicationSlots(checkPoint.redo);
+
        /*
         * Startup MultiXact.  We need to do this early for two reasons: one
         * is that we might try to access multixacts when we do tuple freezing,