Fix missed static declaration.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 9 Feb 2022 23:45:43 +0000 (08:45 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 9 Feb 2022 23:45:43 +0000 (08:45 +0900)
The static declaration of fork_follow_child() was missing. Also fix
typo in a comment.

src/main/pgpool_main.c

index a66be1009e8289a326e774230b791e84a97e2a5c..036bd8b3a26787db4a99b0067d72b26202409f6b 100644 (file)
@@ -2753,7 +2753,7 @@ find_primary_node_repeatedly(void)
 /*
 * fork a follow child
 */
-pid_t
+static pid_t
 fork_follow_child(int old_main_node, int new_primary, int old_primary)
 {
        pid_t           pid;
@@ -2812,7 +2812,7 @@ fork_follow_child(int old_main_node, int new_primary, int old_primary)
                }
                Req_info->follow_primary_ongoing = false;
                pool_release_follow_primary_lock(false);
-               /* inform standby watchdog nodes to release the lock aswell*/
+               /* inform standby watchdog nodes to release the lock as well*/
                wd_unlock_standby(WD_FOLLOW_PRIMARY_LOCK);
                exit(0);
        }