pgpool2.git / summary / log / commit / refs
commit 48f20b9c4eac553382032aef0d221602cf9b2cd0
Author: Tatsuo Ishii <ishii at sraoss.co.jp>
Date: Thu Jun 10 06:44:03 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 0322957c7..fca378fee 100644
--- a/pool.h
+++ b/pool.h
@@ -264,7 +264,7 @@ extern bool pool_is_node_to_be_sent_in_current_query(int node_id);
#define MASTER_CONNECTION(p) ((p)->slots[MASTER_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 REPLICATION (pool_config->replication_mode)
#define MASTER_SLAVE (pool_config->master_slave_mode)
#define DUAL_MODE (REPLICATION || MASTER_SLAVE)
#define PARALLEL_MODE (pool_config->parallel_mode)
[parent: ae0c2fe661ab]