Skip to content

Commit

Permalink
quick fix for issue elastic#55
Browse files Browse the repository at this point in the history
  • Loading branch information
costin committed Jul 15, 2013
1 parent 779006c commit 71d05aa
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -217,7 +217,7 @@ public Map<Shard, Node> getTargetShards() throws IOException {
for (List<Map<String, Object>> shardGroup : info) {
for (Map<String, Object> shardData : shardGroup) {
Shard shard = new Shard(shardData);
if (shard.getState().isStarted()) {
if (shard.getState().isStarted() && shard.isPrimary()) {
Node node = nodes.get(shard.getNode());
Assert.notNull(node, "Cannot find node with id [" + shard.getNode() + "]");
shards.put(shard, node);
Expand Down

0 comments on commit 71d05aa

Please sign in to comment.