Content-Length: 301982 | pFad | http://github.com/postgrespro/postgres/commit/e37c1090df88ca6d7e88f3753fac2f980f6a9dcd

80 Make SyncRepWakeQueue to a static function · postgrespro/postgres@e37c109 · GitHub
Skip to content

Commit e37c109

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 3fbfd5d commit e37c109

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

@@ -529,7 +530,7 @@ SyncRepGetStandbyPriority(void)
529530
*
530531
* Must hold SyncRepLock.
531532
*/
532-
int
533+
static int
533534
SyncRepWakeQueue(bool all, int mode)
534535
{
535536
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/e37c1090df88ca6d7e88f3753fac2f980f6a9dcd

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy