From 55677baee4184398f7a965f55df410e75906e20a Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Thu, 22 Feb 2024 20:35:36 +0900 Subject: [PATCH] Fix to use forward declation of a variable. It is required by our coding standard (we follow PostgreSQL's coding standard). Also fix small typo. --- src/main/pgpool_main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/pgpool_main.c b/src/main/pgpool_main.c index aa9b8a39c..4090da0bf 100644 --- a/src/main/pgpool_main.c +++ b/src/main/pgpool_main.c @@ -3555,12 +3555,13 @@ sync_backend_from_watchdog(void) int down_node_ids[MAX_NUM_BACKENDS]; int down_node_ids_index = 0; int i; + WDPGBackendStatus *backendStatus; /* * Ask the watchdog to get all the backend states from the * Leader/Coordinator Pgpool-II node */ - WDPGBackendStatus *backendStatus = get_pg_backend_status_from_leader_wd_node(); + backendStatus = get_pg_backend_status_from_leader_wd_node(); if (!backendStatus) { @@ -3573,7 +3574,7 @@ sync_backend_from_watchdog(void) { /* * -ve node count is returned by watchdog when the node itself is a - * leader and in that case we need to use the loacl backend node + * leader and in that case we need to use the local backend node * status */ ereport(LOG, -- 2.39.5