Add replicate_select value to the result of "SHOW pool_status" command.
authorYoshiyuki Asaba <y-asaba at pgfoundry.org>
Thu, 26 Jul 2007 06:05:05 +0000 (06:05 +0000)
committerYoshiyuki Asaba <y-asaba at pgfoundry.org>
Thu, 26 Jul 2007 06:05:05 +0000 (06:05 +0000)
pool_process_query.c

index 428817ad7bf4ecb81fcd442259da8da60a0e94a3..a95117334127795f6fd4329937dfa4104aa1ad34 100644 (file)
@@ -2234,6 +2234,11 @@ static void process_reporting(POOL_CONNECTION *frontend, POOL_CONNECTION_POOL *b
        status[i].desc = "stop replication mode on fatal error";
        i++;
 
+       status[i].name = "replicate_select";
+       snprintf(status[i].value, MAXVALLEN, "%d", pool_config.replicate_select);
+       status[i].desc = "non 0 if SELECT statement is replicated";
+       i++;
+
        status[i].name = "reset_query_list";
        *(status[i].value) = '\0';
        for (j=0;j<pool_config.num_reset_queries;j++)