summaryrefslogtreecommitdiff
path: root/src/backend/replication/syncrep.c
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2015-03-26 10:38:11 +0900
committerTatsuo Ishii <ishii@postgresql.org>2015-03-26 10:39:52 +0900
commite37c1090df88ca6d7e88f3753fac2f980f6a9dcd (patch)
tree5d0675cc3d3254e6d024838a6df61da377bf98b5 /src/backend/replication/syncrep.c
parent3fbfd5dbeca7931b40d9ec919fb64c3f08893848 (diff)
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.
Diffstat (limited to 'src/backend/replication/syncrep.c')
-rw-r--r--src/backend/replication/syncrep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/replication/syncrep.c b/src/backend/replication/syncrep.c
index 3d4a7508b4d..132d7e4a7a3 100644
--- a/src/backend/replication/syncrep.c
+++ b/src/backend/replication/syncrep.c
@@ -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;