pgpool2.git / summary / log / commit / refs
commit 64c70d04c53dbc14febecf10964c07c20aac585f
Author: Toshihiro Kitagawa <kitagawa at sraoss.co.jp>
Date: Tue Jan 04 04:38:35 2011 +0000
Fix pool_status so that failback_command and fail_over_on_backend_error
show correct values.
pool_process_reporting.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pool_process_reporting.c b/pool_process_reporting.c
index 2ca65359f..a73bd14b7 100644
--- a/pool_process_reporting.c
+++ b/pool_process_reporting.c
@@ -319,13 +319,13 @@ void config_reporting(POOL_CONNECTION *frontend, POOL_CONNECTION_POOL *backend)
i++;
strncpy(status[i].name, "failback_command", POOLCONFIG_MAXNAMELEN);
- snprintf(status[i].value, POOLCONFIG_MAXVALLEN, "%s", pool_config->failover_command);
+ snprintf(status[i].value, POOLCONFIG_MAXVALLEN, "%s", pool_config->failback_command);
strncpy(status[i].desc, "failback command", POOLCONFIG_MAXDESCLEN);
i++;
strncpy(status[i].name, "fail_over_on_backend_error", POOLCONFIG_MAXNAMELEN);
- snprintf(status[i].value, POOLCONFIG_MAXVALLEN, "%d", pool_config->insert_lock);
- strncpy(status[i].desc, "fail_over_on_backend_error", POOLCONFIG_MAXDESCLEN);
+ snprintf(status[i].value, POOLCONFIG_MAXVALLEN, "%d", pool_config->fail_over_on_backend_error);
+ strncpy(status[i].desc, "fail over on backend error", POOLCONFIG_MAXDESCLEN);
i++;
strncpy(status[i].name, "insert_lock", POOLCONFIG_MAXNAMELEN);
[parent: 6b6939260969]