pgpool2.git / summary / log / commit / refs

commit    cfb09dcd450096d030e3bb7c698e64c24aae058c
Author:   Tatsuo Ishii <ishii@sraoss.co.jp>
Date:     Wed Feb 09 23:45:43 2022 +0000

    Fix missed static declaration.
    
    The static declaration of fork_follow_child() was missing. Also fix
    typo in a comment.


src/main/pgpool_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/pgpool_main.c b/src/main/pgpool_main.c index a66be1009..036bd8b3a 100644 --- a/src/main/pgpool_main.c +++ b/src/main/pgpool_main.c @@ -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); } [parent: d4bf25d7a27c]