Skip to content
Snippets Groups Projects
Commit e37c1090 authored by Tatsuo Ishii's avatar Tatsuo Ishii
Browse files

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.
parent 3fbfd5db
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,7 @@ static int SyncRepWaitMode = SYNC_REP_NO_WAIT;
static void SyncRepQueueInsert(int mode);
static void SyncRepCancelWait(void);
static int SyncRepWakeQueue(bool all, int mode);
static int SyncRepGetStandbyPriority(void);
......@@ -529,7 +530,7 @@ SyncRepGetStandbyPriority(void)
*
* Must hold SyncRepLock.
*/
int
static int
SyncRepWakeQueue(bool all, int mode)
{
volatile WalSndCtlData *walsndctl = WalSndCtl;
......
......@@ -47,9 +47,6 @@ extern void SyncRepReleaseWaiters(void);
/* called by checkpointer */
extern void SyncRepUpdateSyncStandbysDefined(void);
/* called by various procs */
extern int SyncRepWakeQueue(bool all, int mode);
extern bool check_synchronous_standby_names(char **newval, void **extra, GucSource source);
extern void assign_synchronous_commit(int newval, void *extra);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment