From 656ea810e5e1111bc4d741275b37310a32ff890c Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Thu, 26 Mar 2015 10:34:08 +0900 Subject: [PATCH] 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 ec594cf3df..325239d635 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); @@ -546,7 +547,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 b3d399dad3..71e28578cc 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); - /* forward declaration to avoid pulling in walsender_private.h */ struct WalSnd; extern struct WalSnd *SyncRepGetSynchronousStandby(void); -- 2.40.0