Fix IndexShardTestCase.recoverReplica(IndexShard, IndexShard, boolean) ()

This commit fixes the IndexShardTestCase.recoverReplica(IndexShard, IndexShard, boolean) 
method where the startReplica parameter was not correctly propagated and the value
 true always used instead.
This commit is contained in:
Tanguy Leroux 2019-01-15 12:48:21 +01:00 committed by GitHub
parent f7eb517eb8
commit 23ae9808ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -565,7 +565,7 @@ public abstract class IndexShardTestCase extends ESTestCase {
recoverReplica(replica, primary,
(r, sourceNode) -> new RecoveryTarget(r, sourceNode, recoveryListener, version -> {
}),
true, true);
true, startReplica);
}
/** recovers a replica from the given primary **/