postgres.git / summary / log / commit / refs
commit e37c1090df88ca6d7e88f3753fac2f980f6a9dcd
Author: Tatsuo Ishii <ishii@postgresql.org>
Date: Thu Mar 26 01:38:11 2015 +0000
First released in: 9.5.0, 9.2.11, 9.3.7, 9.4.2
Make SyncRepWakeQueue to a static function
It is only used in src/backend/replication/syncrep.c.
Back-patch to all supported branches except 9.1 which declares the
function as static.
src/backend/replication/syncrep.c | 3 ++-
src/include/replication/syncrep.h | 3 ---
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/backend/replication/syncrep.c b/src/backend/replication/syncrep.c
index 3d4a7508b4d..132d7e4a7a3 100644
--- a/src/backend/replication/syncrep.c
+++ b/src/backend/replication/syncrep.c
@@ -69,6 +69,7 @@ static int SyncRepWaitMode = SYNC_REP_NO_WAIT;
static void SyncRepQueueInsert(int mode);
static void SyncRepCancelWait(void);
+static int SyncRepWakeQueue(bool all, int mode);
static int SyncRepGetStandbyPriority(void);
@@ -529,7 +530,7 @@ SyncRepGetStandbyPriority(void)
*
* Must hold SyncRepLock.
*/
-int
+static int
SyncRepWakeQueue(bool all, int mode)
{
volatile WalSndCtlData *walsndctl = WalSndCtl;
diff --git a/src/include/replication/syncrep.h b/src/include/replication/syncrep.h
index 30e61c08844..6cb72eb2195 100644
--- a/src/include/replication/syncrep.h
+++ b/src/include/replication/syncrep.h
@@ -47,9 +47,6 @@ extern void SyncRepReleaseWaiters(void);
/* called by checkpointer */
extern void SyncRepUpdateSyncStandbysDefined(void);
-/* called by various procs */
-extern int SyncRepWakeQueue(bool all, int mode);
-
extern bool check_synchronous_standby_names(char **newval, void **extra, GucSource source);
extern void assign_synchronous_commit(int newval, void *extra);
[parent: 3fbfd5dbeca7]