Tidy up comments, includes.
authorRobert Haas <rhaas@postgresql.org>
Tue, 28 Jan 2014 19:55:54 +0000 (14:55 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 28 Jan 2014 19:55:54 +0000 (14:55 -0500)
src/backend/replication/slot.c
src/backend/replication/slotfuncs.c

index 322b79a9c988f80489b141dce24adc86ceb06eab..6ebd59a363363960abc7649f8c732ad4873865d1 100644 (file)
@@ -502,10 +502,7 @@ ReplicationSlotSave(void)
 }
 
 /*
- * Compute the xmin between all of the decoding slots and store it in
- * ReplicationSlotCtlData.
- *
- * If already_locked is passed in ProcArrayLock is already held exlusively.
+ * Compute the oldest xmin across all slots and store it in the ProcArray.
  */
 void
 ReplicationSlotsComputeRequiredXmin(void)
@@ -544,8 +541,7 @@ ReplicationSlotsComputeRequiredXmin(void)
 }
 
 /*
- * Compute the xmin between all of the decoding slots and store it in
- * ReplicationSlotCtlData.
+ * Compute the oldest restart LSN across all slots and inform xlog module.
  */
 void
 ReplicationSlotsComputeRequiredLSN(void)
@@ -584,8 +580,7 @@ ReplicationSlotsComputeRequiredLSN(void)
 
 /*
  * Check whether the server's configuration supports using replication
- * slots. Usage or creating a replication slot might still fail, even if this
- * function doesn't error out.
+ * slots.
  */
 void
 CheckSlotRequirements(void)
@@ -630,8 +625,7 @@ StartupReplicationSlots(XLogRecPtr checkPointRedo)
        struct dirent *replication_de;
 
        ereport(DEBUG1,
-                       (errmsg("starting up replication slots from LSN %X/%X",
-                                       (uint32) (checkPointRedo >> 32), (uint32) checkPointRedo)));
+                       (errmsg("starting up replication slots")));
 
        /* restore all slots by iterating over all on-disk entries */
        replication_dir = AllocateDir("pg_replslot");
index e89903ec62cf7664e3d94266223e03dccc332b49..f14a9aeb44255d31847acfc6672b8fda1199ffce 100644 (file)
 
 #include "funcapi.h"
 #include "miscadmin.h"
-
 #include "access/htup_details.h"
-
-#include "nodes/makefuncs.h"
-
 #include "utils/builtins.h"
-
 #include "replication/slot.h"
 
-#include "storage/fd.h"
-
 Datum          create_physical_replication_slot(PG_FUNCTION_ARGS);
 Datum          drop_replication_slot(PG_FUNCTION_ARGS);