Skip to content

Commit

Permalink
index.recovery.initial_shards is not being taken into account, closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
kimchy committed Jan 18, 2012
1 parent 5beb656 commit d95783b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public boolean allocateUnassigned(RoutingAllocation allocation) {
int requiredAllocation = 1;
try {
IndexMetaData indexMetaData = routingNodes.metaData().index(shard.index());
String initialShards = indexMetaData.settings().get("recovery.initial_shards", this.initialShards);
String initialShards = indexMetaData.settings().get("index.recovery.initial_shards", this.initialShards);
if ("quorum".equals(initialShards)) {
if (indexMetaData.numberOfReplicas() > 1) {
requiredAllocation = ((1 + indexMetaData.numberOfReplicas()) / 2) + 1;
Expand Down

0 comments on commit d95783b

Please sign in to comment.