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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 0 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy