Adjust bwc version for max_concurrent_file_chunks

Relates #36981
This commit is contained in:
Nhat Nguyen 2019-01-15 11:18:55 -05:00
parent 65e42ab63b
commit 68e2d36fa3
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ public class RecoverySourceHandler {
this.logger = Loggers.getLogger(getClass(), request.shardId(), "recover to " + request.targetNode().getName()); this.logger = Loggers.getLogger(getClass(), request.shardId(), "recover to " + request.targetNode().getName());
this.chunkSizeInBytes = fileChunkSizeInBytes; this.chunkSizeInBytes = fileChunkSizeInBytes;
// if the target is on an old version, it won't be able to handle out-of-order file chunks. // 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() { public StartRecoveryRequest getRequest() {