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

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
1 changed files with 1 additions and 1 deletions

View File

@ -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 **/