From 77b1729231df9ea27925206d911a0d39972f7ae9 Mon Sep 17 00:00:00 2001 From: "Guoji.Ma" Date: Mon, 18 Sep 2017 15:13:28 +0800 Subject: [PATCH] #264, mark exactly the role of sharding server --- .../com/actiontech/dble/backend/datasource/PhysicalDBPool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/actiontech/dble/backend/datasource/PhysicalDBPool.java b/src/main/java/com/actiontech/dble/backend/datasource/PhysicalDBPool.java index ed66709938..8bbd2b5944 100644 --- a/src/main/java/com/actiontech/dble/backend/datasource/PhysicalDBPool.java +++ b/src/main/java/com/actiontech/dble/backend/datasource/PhysicalDBPool.java @@ -214,7 +214,7 @@ public boolean isSlave(PhysicalDatasource ds) { break; } } - islave = (currentIndex == activeIndex); + islave = (currentIndex != activeIndex); return islave; }