pgpool2.git / summary / log / commit / refs

commit    80576ae9542de29fcc79132285a4e955de6e2008
Author:   Tatsuo Ishii <ishii at sraoss.co.jp>
Date:     Tue Oct 19 23:47:33 2010 +0000

    Add entry for failover_if_affected_tuples_mismatch.
    I seem to forgot to add this for 3.0 release. Sigh.
    Also expand column name from 34 to 64, since
    failover_if_affected_tuples_mismatch.  is longer than 32.


pool_process_reporting.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pool_process_reporting.c b/pool_process_reporting.c index e9dcd0199..4523c063d 100644 --- a/pool_process_reporting.c +++ b/pool_process_reporting.c @@ -31,7 +31,7 @@ #include <netinet/in.h> /* some length definitions */ -#define POOLCONFIG_MAXNAMELEN 32 +#define POOLCONFIG_MAXNAMELEN 64 #define POOLCONFIG_MAXVALLEN 512 #define POOLCONFIG_MAXDESCLEN 64 #define POOLCONFIG_MAXIDENTLEN 63 @@ -200,6 +200,11 @@ void config_reporting(POOL_CONNECTION *frontend, POOL_CONNECTION_POOL *backend) strncpy(status[i].desc, "stop replication mode on fatal error", POOLCONFIG_MAXDESCLEN); i++; + strncpy(status[i].name, "failover_if_affected_tuples_mismatch", POOLCONFIG_MAXNAMELEN); + snprintf(status[i].value, POOLCONFIG_MAXVALLEN, "%d", pool_config->failover_if_affected_tuples_mismatch); + strncpy(status[i].desc, "failover if affected tuples are mismatch", POOLCONFIG_MAXDESCLEN); + i++; + strncpy(status[i].name, "replicate_select", POOLCONFIG_MAXNAMELEN); snprintf(status[i].value, POOLCONFIG_MAXVALLEN, "%d", pool_config->replicate_select); strncpy(status[i].desc, "non 0 if SELECT statement is replicated", POOLCONFIG_MAXDESCLEN); [parent: 32109063c0f8]