From e63a5bfa69d928233492805bce07b301b54242ca Mon Sep 17 00:00:00 2001 From: Vincent Royer Date: Fri, 1 Jul 2016 07:29:45 +0200 Subject: [PATCH] release 2.1.1-14 --- .../cassandra/cluster/InternalCassandraClusterService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/cassandra/cluster/InternalCassandraClusterService.java b/src/main/java/org/elasticsearch/cassandra/cluster/InternalCassandraClusterService.java index 238d8066b32..23d5c50f705 100644 --- a/src/main/java/org/elasticsearch/cassandra/cluster/InternalCassandraClusterService.java +++ b/src/main/java/org/elasticsearch/cassandra/cluster/InternalCassandraClusterService.java @@ -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 ); }