Skip to content

Commit

Permalink
release 2.1.1-14
Browse files Browse the repository at this point in the history
  • Loading branch information
vroyer committed Jul 1, 2016
1 parent d29e3e5 commit e63a5bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ public ClusterState updateNumberOfShards(ClusterState currentState) {
if (replicationStrategy instanceof IDistributedReplicationStrategy) {
rf = ((IDistributedReplicationStrategy)replicationStrategy).getReplicationFactor(DatabaseDescriptor.getLocalDataCenter());
}
indexMetaDataBuilder.numberOfReplicas( Math.max(0, rf -1) );
indexMetaDataBuilder.numberOfReplicas( Math.max(0, rf - 1) );
} else {
indexMetaDataBuilder.numberOfReplicas( 0 );
}
Expand Down

0 comments on commit e63a5bf

Please sign in to comment.