Make SyncRepWakeQueue to a static function
authorTatsuo Ishii
Thu, 26 Mar 2015 01:38:11 +0000 (10:38 +0900)
committerTatsuo Ishii
Thu, 26 Mar 2015 01:39:52 +0000 (10:39 +0900)
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.

src/backend/replication/syncrep.c
src/include/replication/syncrep.h

index 3d4a7508b4d0ce6f9b2ef60953eae216ff19ddb3..132d7e4a7a39ab8b482284910f8025a3de27fbc5 100644 (file)
@@ -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;
index 30e61c088446556cb95ff5dbe8126fcc02d41a04..6cb72eb21956a0a35048290a2f2359c322658bdc 100644 (file)
@@ -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);