pgpool2.git / summary / log / commit / refs

commit    ae0c2fe661ab14a4f267afbb2277cb1100e0fc2a
Author:   Tatsuo Ishii <ishii at sraoss.co.jp>
Date:     Thu Jun 10 06:42:31 2010 +0000

    Change definition of REPLICATION/MASTER_SLAVE
    Do not refer to pool_config->replication_enabled, master_slave_enabled


pool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pool.h b/pool.h index b14fd873a..0322957c7 100644 --- a/pool.h +++ b/pool.h @@ -265,7 +265,7 @@ extern bool pool_is_node_to_be_sent_in_current_query(int node_id); #define MASTER_NODE_ID (in_load_balance? selected_slot : Req_info->master_node_id) #define IS_MASTER_NODE_ID(node_id) (MASTER_NODE_ID == (node_id)) #define REPLICATION (pool_config->replication_enabled) -#define MASTER_SLAVE (pool_config->master_slave_enabled) +#define MASTER_SLAVE (pool_config->master_slave_mode) #define DUAL_MODE (REPLICATION || MASTER_SLAVE) #define PARALLEL_MODE (pool_config->parallel_mode) #define RAW_MODE (!REPLICATION && !PARALLEL_MODE && !MASTER_SLAVE) [parent: f23a944ad967]