Commit 656ea810 authored by Tatsuo Ishii's avatar Tatsuo Ishii

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.
parent a4847fc3
...@@ -69,6 +69,7 @@ static int SyncRepWaitMode = SYNC_REP_NO_WAIT; ...@@ -69,6 +69,7 @@ static int SyncRepWaitMode = SYNC_REP_NO_WAIT;
static void SyncRepQueueInsert(int mode); static void SyncRepQueueInsert(int mode);
static void SyncRepCancelWait(void); static void SyncRepCancelWait(void);
static int SyncRepWakeQueue(bool all, int mode);
static int SyncRepGetStandbyPriority(void); static int SyncRepGetStandbyPriority(void);
...@@ -546,7 +547,7 @@ SyncRepGetStandbyPriority(void) ...@@ -546,7 +547,7 @@ SyncRepGetStandbyPriority(void)
* *
* Must hold SyncRepLock. * Must hold SyncRepLock.
*/ */
int static int
SyncRepWakeQueue(bool all, int mode) SyncRepWakeQueue(bool all, int mode)
{ {
volatile WalSndCtlData *walsndctl = WalSndCtl; volatile WalSndCtlData *walsndctl = WalSndCtl;
......
...@@ -47,9 +47,6 @@ extern void SyncRepReleaseWaiters(void); ...@@ -47,9 +47,6 @@ extern void SyncRepReleaseWaiters(void);
/* called by checkpointer */ /* called by checkpointer */
extern void SyncRepUpdateSyncStandbysDefined(void); extern void SyncRepUpdateSyncStandbysDefined(void);
/* called by various procs */
extern int SyncRepWakeQueue(bool all, int mode);
/* forward declaration to avoid pulling in walsender_private.h */ /* forward declaration to avoid pulling in walsender_private.h */
struct WalSnd; struct WalSnd;
extern struct WalSnd *SyncRepGetSynchronousStandby(void); extern struct WalSnd *SyncRepGetSynchronousStandby(void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment