Skip to content

Commit e9a080d

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 3352c23 commit e9a080d

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
@@ -660,7 +660,7 @@ ReplicationSlotsComputeRequiredLSN(void)
660660
/*
661661
* Compute the oldest WAL LSN required by *logical* decoding slots..
662662
*
663-
* Returns InvalidXLogRecPtr if logical decoding is disabled or no logicals
663+
* Returns InvalidXLogRecPtr if logical decoding is disabled or no logical
664664
* slots exist.
665665
*
666666
* NB: this returns a value >= ReplicationSlotsComputeRequiredLSN(), since it
@@ -875,7 +875,7 @@ StartupReplicationSlots(void)
875875
}
876876

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

0 commit comments

Comments
 (0)