Skip to content

Commit 3740bb8

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 3171edd commit 3740bb8

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

@@ -524,7 +525,7 @@ SyncRepGetStandbyPriority(void)
524525
*
525526
* Must hold SyncRepLock.
526527
*/
527-
int
528+
static int
528529
SyncRepWakeQueue(bool all, int mode)
529530
{
530531
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
extern bool check_synchronous_standby_names(char **newval, void **extra, GucSource source);
5451
extern void assign_synchronous_commit(int newval, void *extra);
5552

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