Fix typos in message emitted by sync_backend_from_watchdog().
authorTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 3 Feb 2021 08:01:23 +0000 (17:01 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 3 Feb 2021 08:10:16 +0000 (17:10 +0900)
src/main/pgpool_main.c

index 7622b0ca93db49ad27aed26ada2ad8d2517a6c34..040a47f4c1ae1e6e63c5b60849c6ad414382c8ed 100644 (file)
@@ -3695,7 +3695,7 @@ static void sync_backend_from_watchdog(void)
                 * restart all child processes
                 */
                ereport(LOG,
-                       (errmsg("node status was chenged after the sync from \"%s\"",backendStatus->nodeName),
+                               (errmsg("node status was changed after the sync from \"%s\"", backendStatus->nodeName),
                                 errdetail("all children needs to be restarted as we are not in streaming replication mode")));
                need_to_restart_children = true;
                partial_restart = false;
@@ -3708,9 +3708,8 @@ static void sync_backend_from_watchdog(void)
                need_to_restart_children = true;
                partial_restart = false;
                ereport(LOG,
-                       (errmsg("primary node was chenged after the sync from \"%s\"",backendStatus->nodeName),
-                               errdetail("all children needs to be restarted")));
-
+                               (errmsg("primary node was changed after the sync from \"%s\"", backendStatus->nodeName),
+                                errdetail("all children needs to be restarted")));
        }
        else
        {