Skip to content

Commit 58d2e7f

Browse files
committed
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
1 parent 1cd4685 commit 58d2e7f

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/backend/replication/logical/logical.c

-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828

2929
#include "postgres.h"
3030

31-
#include <unistd.h>
32-
#include <sys/stat.h>
33-
3431
#include "miscadmin.h"
3532

3633
#include "access/xact.h"

src/backend/replication/slot.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ ReplicationSlotsComputeRequiredLSN(void)
661661
/*
662662
* Compute the oldest WAL LSN required by *logical* decoding slots..
663663
*
664-
* Returns InvalidXLogRecPtr if logical decoding is disabled or no logicals
664+
* Returns InvalidXLogRecPtr if logical decoding is disabled or no logical
665665
* slots exist.
666666
*
667667
* NB: this returns a value >= ReplicationSlotsComputeRequiredLSN(), since it
@@ -876,7 +876,7 @@ StartupReplicationSlots(void)
876876
}
877877

878878
/* ----
879-
* Manipulation of ondisk state of replication slots
879+
* Manipulation of on-disk state of replication slots
880880
*
881881
* NB: none of the routines below should take any notice whether a slot is the
882882
* current one or not, that's all handled a layer above.

0 commit comments

Comments
 (0)