Permalink
Browse files

bug fix: checking partition id in Cluster.java

  • Loading branch information...
1 parent ea0c80b commit 07b2271b5794ea9911ae356d31e1517b6c744c93 shingon committed Jul 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/java/voldemort/cluster/Cluster.java
@@ -83,7 +83,7 @@ private int getNumberOfTags(List<Node> nodes) {
for(Node node: nodes)
tags.addAll(node.getPartitionIds());
Collections.sort(tags);
- for(int i = 0; i < numberOfTags; i++) {
+ for(int i = 0; i < tags.size(); i++) {
if(tags.get(i).intValue() != i)
throw new IllegalArgumentException("Invalid tag assignment.");
}

0 comments on commit 07b2271

Please sign in to comment.