diff options
author | Tatsuo Ishii <ishii@postgresql.org> | 2015-03-26 10:38:11 +0900 |
---|---|---|
committer | Tatsuo Ishii <ishii@postgresql.org> | 2015-03-26 10:39:18 +0900 |
commit | 56abebb9be6d1e7179d10cdc362caa4405f06784 (patch) | |
tree | 1e5e32e75e41a041c54d02752ca8c9526d624e51 /src/backend | |
parent | 7cd5498b375ea1ce7bdd158da5940e000578ef08 (diff) | |
download | postgresql-56abebb9be6d1e7179d10cdc362caa4405f06784.tar.gz postgresql-56abebb9be6d1e7179d10cdc362caa4405f06784.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')
-rw-r--r-- | src/backend/replication/syncrep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/replication/syncrep.c b/src/backend/replication/syncrep.c index 01d876f447a..e399e96a2e1 100644 --- a/src/backend/replication/syncrep.c +++ b/src/backend/replication/syncrep.c @@ -68,6 +68,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); @@ -523,7 +524,7 @@ SyncRepGetStandbyPriority(void) * * Must hold SyncRepLock. */ -int +static int SyncRepWakeQueue(bool all, int mode) { volatile WalSndCtlData *walsndctl = WalSndCtl; |