Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Make SyncRepWakeQueue to a static function
authorTatsuo Ishii <ishii@postgresql.org>
Thu, 26 Mar 2015 01:38:11 +0000 (10:38 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Thu, 26 Mar 2015 01:39:18 +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 01d876f447af51be7441e8dd3f0f20d7a5fcf86d..e399e96a2e11fe800266c809f85b722c1253a619 100644 (file)
@@ -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;
index ac23ea69763b28463f96be6415717774a35fe033..57a496366a80047b02d6ed79fba349cd79bb1957 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);