Minor cleanups in slot related code.
authorAndres Freund <andres@anarazel.de>
Tue, 11 Aug 2015 10:32:48 +0000 (12:32 +0200)
committerAndres Freund <andres@anarazel.de>
Tue, 11 Aug 2015 10:32:48 +0000 (12:32 +0200)
Fix a bunch of typos, and remove two superflous includes.

Author: Gurjeet Singh
Discussion: CABwTF4Wh_dBCzTU=49pFXR6coR4NW1ynb+vBqT+Po=7fuq5iCw@mail.gmail.com
Backpatch: 9.4

src/backend/replication/logical/logical.c
src/backend/replication/slot.c

index 7643add6d2cc3f63c9ec7b72b5c0dbe340ef6929..ee7d3268f02830fbb921d759be80dae05557b985 100644 (file)
@@ -28,9 +28,6 @@
 
 #include "postgres.h"
 
-#include <unistd.h>
-#include <sys/stat.h>
-
 #include "miscadmin.h"
 
 #include "access/xact.h"
index f8544de6abfe5ff78601522221058fd835b235c5..abe8747fe4de401f9c63cc396766a0b8a1f1e2a5 100644 (file)
@@ -661,7 +661,7 @@ ReplicationSlotsComputeRequiredLSN(void)
 /*
  * Compute the oldest WAL LSN required by *logical* decoding slots..
  *
- * Returns InvalidXLogRecPtr if logical decoding is disabled or no logicals
+ * Returns InvalidXLogRecPtr if logical decoding is disabled or no logical
  * slots exist.
  *
  * NB: this returns a value >= ReplicationSlotsComputeRequiredLSN(), since it
@@ -876,7 +876,7 @@ StartupReplicationSlots(void)
 }
 
 /* ----
- * Manipulation of ondisk state of replication slots
+ * Manipulation of on-disk state of replication slots
  *
  * NB: none of the routines below should take any notice whether a slot is the
  * current one or not, that's all handled a layer above.