mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -546,7 +547,7 @@ SyncRepGetStandbyPriority(void)
|
||||
*
|
||||
* Must hold SyncRepLock.
|
||||
*/
|
||||
int
|
||||
static int
|
||||
SyncRepWakeQueue(bool all, int mode)
|
||||
{
|
||||
volatile WalSndCtlData *walsndctl = WalSndCtl;
|
||||
|
Reference in New Issue
Block a user