use the smaller value possible

This commit is contained in:
Shay Banon 2011-12-08 14:10:25 +02:00
parent 074c70dc4f
commit b7d3f8fc99
1 changed files with 1 additions and 1 deletions

View File

@ -533,7 +533,7 @@ public abstract class TransportShardReplicationOperationAction<Request extends S
// async replication, notify the listener
listener.onResponse(response.response());
// now, trick the counter so it won't decrease to 0 and notify the listeners
replicaCounter = -100;
replicaCounter = Integer.MIN_VALUE;
}
// we add one to the replica count to do the postPrimaryOperation