Fix: Typo in a function name
authorMuhammad Usama <m.usama@highgo.ca>
Fri, 16 Jul 2021 10:43:12 +0000 (15:43 +0500)
committerMuhammad Usama <m.usama@gmail.com>
Fri, 16 Jul 2021 10:45:17 +0000 (15:45 +0500)
12 files changed:
src/include/pool.h
src/main/main.c
src/main/pgpool_logger.c
src/main/pgpool_main.c
src/main/pool_globals.c
src/pcp_con/pcp_child.c
src/watchdog/watchdog.c
src/watchdog/wd_escalation.c
src/watchdog/wd_heartbeat.c
src/watchdog/wd_if.c
src/watchdog/wd_lifecheck.c
src/watchdog/wd_ping.c

index 11853a9751fc75f1f1006e956e00ea6e298d53e8..ff47184c347f2b6151cff8a528d2941b6054c861 100644 (file)
@@ -564,7 +564,7 @@ extern void set_application_name_with_suffix(ProcessType ptype, int suffix);
 extern char *get_application_name(void);
 extern char *get_application_name_for_procees(ProcessType ptype);
 
-void SetProcessGlobalVaraibles(ProcessType pType);
+void SetProcessGlobalVariables(ProcessType pType);
 
 extern volatile SI_ManageInfo *si_manage_info;
 extern volatile sig_atomic_t sigusr2_received;
index 7bb6e18b436baee2dcc1b726ffdd55421716174d..d72d7ba88f2ec8b404220e39fa469219587aa23b 100644 (file)
@@ -223,7 +223,7 @@ main(int argc, char **argv)
        hba_file = make_absolute_path(hba_file_path, base_dir);
 
        mypid = getpid();
-       SetProcessGlobalVaraibles(PT_MAIN);
+       SetProcessGlobalVariables(PT_MAIN);
 
 
        pool_init_config();
@@ -482,7 +482,7 @@ daemonize(void)
 #endif
 
        mypid = getpid();
-       SetProcessGlobalVaraibles(PT_MAIN);
+       SetProcessGlobalVariables(PT_MAIN);
        write_pid_file();
        if (chdir("/"))
                ereport(WARNING,
index 2f84cec524dbcda055bb14587475ba474693aebf..346376b4b26f2f992625dfb373f2b58ca8e85ebc 100644 (file)
@@ -525,7 +525,7 @@ SysLogger_Start(void)
 
                case 0:
                        on_exit_reset();
-                       SetProcessGlobalVaraibles(PT_LOGGER);
+                       SetProcessGlobalVariables(PT_LOGGER);
                        /* do the work */
                        SysLoggerMain(0, NULL);
                        break;
index 75cbf8e4ae325729b2aaf6d36901248bcabc2915..4259056fcbd57c6a5e60fb5645520a6ff281e647 100644 (file)
@@ -624,7 +624,7 @@ pcp_fork_a_child(int unix_fd, int inet_fd, char *pcp_conf_file)
        if (pid == 0)
        {
                on_exit_reset();
-               SetProcessGlobalVaraibles(PT_PCP);
+               SetProcessGlobalVariables(PT_PCP);
 
                close(pipe_fds[0]);
                close(pipe_fds[1]);
@@ -672,7 +672,7 @@ fork_a_child(int *fds, int id)
                        close(pipe_fds[1]);
                }
 
-               SetProcessGlobalVaraibles(PT_CHILD);
+               SetProcessGlobalVariables(PT_CHILD);
 
                /* call child main */
                POOL_SETMASK(&UnBlockSig);
@@ -719,7 +719,7 @@ worker_fork_a_child(ProcessType type, void (*func) (), void *params)
                        close(pipe_fds[1]);
                }
 
-               SetProcessGlobalVaraibles(type);
+               SetProcessGlobalVariables(type);
 
                ereport(LOG,
                                (errmsg("process started")));
@@ -3369,7 +3369,7 @@ fork_follow_child(int old_main_node, int new_primary, int old_primary)
                }
 #endif
 
-               SetProcessGlobalVaraibles(PT_FOLLOWCHILD);
+               SetProcessGlobalVariables(PT_FOLLOWCHILD);
                /*
                 * when the watchdog is enabled, we would come here
                 * only on the coordinator node.
index 8f9276a0c80c6e56776b21468f80be8b8e2662f9..384766be868d0387c8f072c4b1b01c048cdb38d2 100644 (file)
@@ -102,7 +102,7 @@ get_application_name(void)
        return process_application_name;
 }
 
-void SetProcessGlobalVaraibles(ProcessType pType)
+void SetProcessGlobalVariables(ProcessType pType)
 {
        processType = pType;
        myProcPid = getpid();
index 59a304097fa8a52266eac3916667b8c19a97ab9a..55ec803ee00fe23a54c55ec4612cd78f7fe564c9 100644 (file)
@@ -267,7 +267,7 @@ start_pcp_command_processor_process(int port)
 
        if (pid == 0)                           /* child */
        {
-               SetProcessGlobalVaraibles(PT_PCP_WORKER);
+               SetProcessGlobalVariables(PT_PCP_WORKER);
 
                on_exit_reset();
                /* Close the listen sockets sockets */
index 23c01a0c5d32c59426a4eb1d93196d59905d5591..69ff60b17e1dd06b5de0ffe7381d02801c6d207a 100644 (file)
@@ -1120,7 +1120,7 @@ fork_watchdog_child(void)
        {
                on_exit_reset();
 
-               SetProcessGlobalVaraibles(PT_WATCHDOG);
+               SetProcessGlobalVariables(PT_WATCHDOG);
 
                /* call watchdog child main */
                POOL_SETMASK(&UnBlockSig);
index 686ac0e89a02898619d78d65a6beaeb91d382af2..9acd4e49ec22e270027e6c8c901add44b0b91dc8 100644 (file)
@@ -73,7 +73,7 @@ fork_escalation_process(void)
                return pid;
        }
        on_exit_reset();
-       SetProcessGlobalVaraibles(PT_WATCHDOG_UTILITY);
+       SetProcessGlobalVariables(PT_WATCHDOG_UTILITY);
 
        POOL_SETMASK(&UnBlockSig);
 
@@ -161,7 +161,7 @@ fork_plunging_process(void)
                return pid;
        }
        on_exit_reset();
-       SetProcessGlobalVaraibles(PT_WATCHDOG_UTILITY);
+       SetProcessGlobalVariables(PT_WATCHDOG_UTILITY);
 
        POOL_SETMASK(&UnBlockSig);
 
index d9bd98acabbf3e06091a41c58c23e0e1b99b07bf..c8dc0769f8a2364c24d9ea46b63e360ca37690ae 100644 (file)
@@ -363,7 +363,7 @@ wd_hb_receiver(int fork_wait_time, WdHbIf * hb_if)
        }
 
        on_exit_reset();
-       SetProcessGlobalVaraibles(PT_HB_RECEIVER);
+       SetProcessGlobalVariables(PT_HB_RECEIVER);
 
        if (fork_wait_time > 0)
        {
@@ -496,7 +496,7 @@ wd_hb_sender(int fork_wait_time, WdHbIf * hb_if)
        }
 
        on_exit_reset();
-       SetProcessGlobalVaraibles(PT_HB_SENDER);
+       SetProcessGlobalVariables(PT_HB_SENDER);
 
        if (fork_wait_time > 0)
        {
index 5759254833ccbccdc4ce1900be4dbe5c6834bd4c..1de2337e281efb15c27a73c18a94605379e91dd3 100644 (file)
@@ -312,7 +312,7 @@ exec_if_cmd(char *path, char *command)
        if (pid == 0)
        {
                on_exit_reset();
-               SetProcessGlobalVaraibles(PT_WATCHDOG_UTILITY);
+               SetProcessGlobalVariables(PT_WATCHDOG_UTILITY);
                close(STDOUT_FILENO);
                dup2(pfd[1], STDOUT_FILENO);
                close(pfd[0]);
index 1e384d9edbabd7f6e3fbc5d5a33e52023de4e534..e2f8f2ab2acf67ed79a9917fda4eafa14b3a4efb 100644 (file)
@@ -357,7 +357,7 @@ fork_lifecheck_child(void)
        if (pid == 0)
        {
                on_exit_reset();
-               SetProcessGlobalVaraibles(PT_LIFECHECK);
+               SetProcessGlobalVariables(PT_LIFECHECK);
 
                /* call lifecheck child main */
                POOL_SETMASK(&UnBlockSig);
index 7d4c72d88cccdd8661d1ad3ba9a98006d1ab0ad4..6e758c4480483e57307e409572020633999dfc41 100644 (file)
@@ -134,7 +134,7 @@ wd_issue_ping_command(char *hostname, int *outfd)
        {
                /* CHILD */
                on_exit_reset();
-               SetProcessGlobalVaraibles(PT_WATCHDOG_UTILITY);
+               SetProcessGlobalVariables(PT_WATCHDOG_UTILITY);
 
                close(STDOUT_FILENO);
                dup2(pfd[1], STDOUT_FILENO);