diff options
Diffstat (limited to 'jstests/concurrency/fsm_workload_helpers/chunks.js')
-rw-r--r-- | jstests/concurrency/fsm_workload_helpers/chunks.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/jstests/concurrency/fsm_workload_helpers/chunks.js b/jstests/concurrency/fsm_workload_helpers/chunks.js index caa84a6c38c..2c71eda6a87 100644 --- a/jstests/concurrency/fsm_workload_helpers/chunks.js +++ b/jstests/concurrency/fsm_workload_helpers/chunks.js @@ -70,13 +70,16 @@ var ChunkHelper = (function() { moveChunk: db[collName].getFullName(), bounds: bounds, to: toShard, - _waitForDelete: waitForDelete }; + if (waitForDelete != null) { + cmd._waitForDelete = waitForDelete; + } + // Using _secondaryThrottle adds coverage for additional waits for write concern on the // recipient during cloning. - if (secondaryThrottle) { - cmd._secondaryThrottle = true; + if (secondaryThrottle != null) { + cmd._secondaryThrottle = secondaryThrottle; cmd.writeConcern = {w: "majority"}; // _secondaryThrottle requires a write concern. } |