From: Andres Freund Date: Tue, 28 Jan 2014 18:48:26 +0000 (+0100) Subject: Re-Add hunk initalizing replication slots in StartupXLOG(), slipped to a later patch. X-Git-Url: http://git.postgresql.org/gitweb/static/close/reject?a=commitdiff_plain;h=e3c2a3e0ae00b44494f9d4ec273b92df4fe1fb55;p=users%2Frhaas%2Fpostgres.git Re-Add hunk initalizing replication slots in StartupXLOG(), slipped to a later patch. --- diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index c420fc3829..7f787a5a1c 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -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,