Skip to content

Commit 656ea81

Browse files
committed
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.
1 parent a4847fc commit 656ea81

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/backend/replication/syncrep.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ static int SyncRepWaitMode = SYNC_REP_NO_WAIT;
6969

7070
static void SyncRepQueueInsert(int mode);
7171
static void SyncRepCancelWait(void);
72+
static int SyncRepWakeQueue(bool all, int mode);
7273

7374
static int SyncRepGetStandbyPriority(void);
7475

@@ -546,7 +547,7 @@ SyncRepGetStandbyPriority(void)
546547
*
547548
* Must hold SyncRepLock.
548549
*/
549-
int
550+
static int
550551
SyncRepWakeQueue(bool all, int mode)
551552
{
552553
volatile WalSndCtlData *walsndctl = WalSndCtl;

src/include/replication/syncrep.h

-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ extern void SyncRepReleaseWaiters(void);
4747
/* called by checkpointer */
4848
extern void SyncRepUpdateSyncStandbysDefined(void);
4949

50-
/* called by various procs */
51-
extern int SyncRepWakeQueue(bool all, int mode);
52-
5350
/* forward declaration to avoid pulling in walsender_private.h */
5451
struct WalSnd;
5552
extern struct WalSnd *SyncRepGetSynchronousStandby(void);

0 commit comments

Comments
 (0)