aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2015-08-11 12:32:49 +0200
committerAndres Freund <andres@anarazel.de>2015-08-11 12:32:49 +0200
commite9a080d3692893081306fee262565ba87080dfd0 (patch)
tree2105bda2143d6b40a11de46b535047975868070a
parent3352c23a611bdf2e1bcbd697f1265f0042b08136 (diff)
downloadpostgresql-e9a080d3692893081306fee262565ba87080dfd0.tar.gz
postgresql-e9a080d3692893081306fee262565ba87080dfd0.zip
Minor cleanups in slot related code.
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
-rw-r--r--src/backend/replication/logical/logical.c3
-rw-r--r--src/backend/replication/slot.c4
2 files changed, 2 insertions, 5 deletions
diff --git a/src/backend/replication/logical/logical.c b/src/backend/replication/logical/logical.c
index 156c4181ecc..2e72b2928f0 100644
--- a/src/backend/replication/logical/logical.c
+++ b/src/backend/replication/logical/logical.c
@@ -28,9 +28,6 @@
#include "postgres.h"
-#include <unistd.h>
-#include <sys/stat.h>
-
#include "miscadmin.h"
#include "access/xact.h"
diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c
index e0929cd00ba..122cac38540 100644
--- a/src/backend/replication/slot.c
+++ b/src/backend/replication/slot.c
@@ -660,7 +660,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
@@ -875,7 +875,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.