fix missing change when merged from master

This commit is contained in:
Boaz Leskes 2016-03-25 17:04:42 +01:00
parent 91021e3019
commit 695d9c38bb
1 changed files with 1 additions and 6 deletions

View File

@ -345,12 +345,7 @@ public class IndexShardTests extends ESSingleNodeTestCase {
}
Releasable operation1 = indexShard.acquirePrimaryOperationLock();
assertEquals(1, indexShard.getActiveOperationsCount());
Releasable operation2;
if (randomBoolean()) {
operation2 = indexShard.acquirePrimaryOperationLock();
} else {
operation2 = indexShard.acquireReplicaOperationLock(primaryTerm);
}
Releasable operation2 = indexShard.acquirePrimaryOperationLock();
assertEquals(2, indexShard.getActiveOperationsCount());
Releasables.close(operation1, operation2);