pgpool2.git / summary / log / commit / refs
commit 54b5e729972bb26be4dc69dea970989d91151390
Author: Bo Peng <pengbo@sraoss.co.jp>
Date: Fri Sep 03 04:58:46 2021 +0000
Fix bug of "PGPOOL SHOW heartbeat" and "PGPOOL SHOW ALL" command.
The last member in heartbeat_* array was not displayed in the command result.
src/config/pool_config_variables.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/config/pool_config_variables.c b/src/config/pool_config_variables.c
index 2fa41bfe0..e72f8a144 100644
--- a/src/config/pool_config_variables.c
+++ b/src/config/pool_config_variables.c
@@ -4311,8 +4311,7 @@ WdSlotEmptyCheckFunc(int index)
static bool
WdIFSlotEmptyCheckFunc(int index)
{
-
- return (index >= g_pool_config.num_hb_dest_if);
+ return (g_pool_config.hb_ifs[index].dest_port == 0);
}
static const char *
[parent: ee88581f5b15]