Merge branch 'master' of https://github.com/mrniko/redisson into feature/travis-ci

pull/509/head
jackygurui 9 years ago
commit 1094fcd8b0

@ -485,7 +485,9 @@ public class ClusterConnectionManager extends MasterSlaveConnectionManager {
List<ClusterPartition> currentPartitions = new ArrayList<ClusterPartition>(lastPartitions.values());
for (ClusterPartition currentPartition : currentPartitions) {
for (ClusterPartition newPartition : newPartitions) {
if (!currentPartition.getNodeId().equals(newPartition.getNodeId())) {
if (!currentPartition.getNodeId().equals(newPartition.getNodeId())
// skip master change case
|| !currentPartition.getMasterAddr().equals(newPartition.getMasterAddr())) {
continue;
}

@ -93,4 +93,11 @@ public class ClusterPartition {
failedSlaves.remove(uri);
}
@Override
public String toString() {
return "ClusterPartition [nodeId=" + nodeId + ", masterFail=" + masterFail + ", masterAddress=" + masterAddress
+ ", slaveAddresses=" + slaveAddresses + ", failedSlaves=" + failedSlaves + ", slotRanges=" + slotRanges
+ "]";
}
}

Loading…
Cancel
Save