8000 Make SyncRepWakeQueue to a static function · rowhit/postgres@56abebb · GitHub
[go: up one dir, main page]

Skip to content

Commit 56abebb

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 7cd5498 commit 56abebb

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
@@ -68,6 +68,7 @@ static int SyncRepWaitMode = SYNC_REP_NO_WAIT;
6868

6969
static void SyncRepQueueInsert(int mode);
7070
static void SyncRepCancelWait(void);
71+
static int SyncRepWakeQueue(bool all, int mode);
7172

7273
static int SyncRepGetStandbyPriority(void);
7374

@@ -523,7 +524,7 @@ SyncRepGetStandbyPriority(void)
523524
*
524525
* Must hold SyncRepLock.
525526
*/
526-
int
527+
static int
527528
SyncRepWakeQueue(bool all, int mode)
528529
{
529530
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)
0