Skip to content

Commit

Permalink
Adjust bwc version for max_concurrent_file_chunks
Browse files Browse the repository at this point in the history
Relates #36981
  • Loading branch information
dnhatn committed Jan 15, 2019
1 parent 65e42ab commit 68e2d36
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public RecoverySourceHandler(final IndexShard shard, RecoveryTargetHandler recov
this.logger = Loggers.getLogger(getClass(), request.shardId(), "recover to " + request.targetNode().getName());
this.chunkSizeInBytes = fileChunkSizeInBytes;
// if the target is on an old version, it won't be able to handle out-of-order file chunks.
this.maxConcurrentFileChunks = request.targetNode().getVersion().onOrAfter(Version.V_7_0_0) ? maxConcurrentFileChunks : 1;
this.maxConcurrentFileChunks = request.targetNode().getVersion().onOrAfter(Version.V_6_7_0) ? maxConcurrentFileChunks : 1;
}

public StartRecoveryRequest getRequest() {
Expand Down

0 comments on commit 68e2d36

Please sign in to comment.