pgpool2.git / summary / log / commit / refs

commit    67458ec12e097ed2b38300868a778c715ded2847
Author:   Tatsuo Ishii <ishii at sraoss.co.jp>
Date:     Fri Nov 23 00:14:10 2007 +0000

    Add missing replicate_select entry. per bug report on [pgsql-jp: 38968].


pool_config.c | 14 ++++++++++++++ pool_config.l | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/pool_config.c b/pool_config.c index 4666ed242..c6daedf70 100644 --- a/pool_config.c +++ b/pool_config.c @@ -2107,6 +2107,20 @@ int pool_get_config(char *confpath, POOL_CONFIG_CONTEXT context) pool_debug("replication_stop_on_mismatch: %d", v); pool_config->replication_stop_on_mismatch = v; } + else if (!strcmp(key, "replicate_select") && + CHECK_CONTEXT(INIT_CONFIG|RELOAD_CONFIG, context)) + { + int v = eval_logical(yytext); + + if (v < 0) + { + pool_error("pool_config: invalid value %s for %s", yytext, key); + fclose(fd); + return(-1); + } + pool_debug("replicate_select: %d", v); + pool_config->replicate_select = v; + } else if (!strcmp(key, "reset_query_list") && CHECK_CONTEXT(INIT_CONFIG|RELOAD_CONFIG, context)) { diff --git a/pool_config.l b/pool_config.l index b9cd4b996..e86d2b7b8 100644 --- a/pool_config.l +++ b/pool_config.l @@ -569,6 +569,20 @@ int pool_get_config(char *confpath, POOL_CONFIG_CONTEXT context) pool_debug("replication_stop_on_mismatch: %d", v); pool_config->replication_stop_on_mismatch = v; } + else if (!strcmp(key, "replicate_select") && + CHECK_CONTEXT(INIT_CONFIG|RELOAD_CONFIG, context)) + { + int v = eval_logical(yytext); + + if (v < 0) + { + pool_error("pool_config: invalid value %s for %s", yytext, key); + fclose(fd); + return(-1); + } + pool_debug("replicate_select: %d", v); + pool_config->replicate_select = v; + } else if (!strcmp(key, "reset_query_list") && CHECK_CONTEXT(INIT_CONFIG|RELOAD_CONFIG, context)) { [parent: 4904e94a6379]