aboutsummaryrefslogtreecommitdiff
path: root/src/backend/replication/syncrep.c
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2015-03-26 10:34:08 +0900
committerTatsuo Ishii <ishii@postgresql.org>2015-03-26 10:34:08 +0900
commit656ea810e5e1111bc4d741275b37310a32ff890c (patch)
tree2d24338fd390ec12b96860e034be5c77087531ca /src/backend/replication/syncrep.c
parenta4847fc3ef139ba9a8ffebb6ffa06ee72078ffa2 (diff)
downloadpostgresql-656ea810e5e1111bc4d741275b37310a32ff890c.tar.gz
postgresql-656ea810e5e1111bc4d741275b37310a32ff890c.zip
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 ec594cf3df8..325239d6358 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);
@@ -546,7 +547,7 @@ SyncRepGetStandbyPriority(void)
*
* Must hold SyncRepLock.
*/
-int
+static int
SyncRepWakeQueue(bool all, int mode)
{
volatile WalSndCtlData *walsndctl = WalSndCtl;