diff options
Diffstat (limited to 'jstests/concurrency/fsm_workloads/touch_no_data_no_index.js')
-rw-r--r-- | jstests/concurrency/fsm_workloads/touch_no_data_no_index.js | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/jstests/concurrency/fsm_workloads/touch_no_data_no_index.js b/jstests/concurrency/fsm_workloads/touch_no_data_no_index.js index 18cf0329b02..25ce50fc5ac 100644 --- a/jstests/concurrency/fsm_workloads/touch_no_data_no_index.js +++ b/jstests/concurrency/fsm_workloads/touch_no_data_no_index.js @@ -4,22 +4,28 @@ * touch_no_data_no_index.js * * Bulk inserts documents in batches of 100, uses touch as a no-op, - * and queries to verify the number of documents inserted by the thread. + * and queries to verify the number of documents inserted by the thread. */ -load('jstests/concurrency/fsm_libs/extend_workload.js'); // for extendWorkload -load('jstests/concurrency/fsm_workloads/touch_base.js'); // for $config +load('jstests/concurrency/fsm_libs/extend_workload.js'); // for extendWorkload +load('jstests/concurrency/fsm_workloads/touch_base.js'); // for $config -var $config = extendWorkload($config, function($config, $super) { - $config.data.generateTouchCmdObj = function generateTouchCmdObj(collName) { - return { touch: collName, data: false, index: false }; - }; +var $config = + extendWorkload($config, + function($config, $super) { + $config.data.generateTouchCmdObj = function generateTouchCmdObj(collName) { + return { + touch: collName, + data: false, + index: false + }; + }; - $config.states.touch = function touch(db, collName) { - var res = db.runCommand(this.generateTouchCmdObj(collName)); - // The command always fails because "index" and "data" are both false - assertAlways.commandFailed(res); - }; + $config.states.touch = function touch(db, collName) { + var res = db.runCommand(this.generateTouchCmdObj(collName)); + // The command always fails because "index" and "data" are both false + assertAlways.commandFailed(res); + }; - return $config; -}); + return $config; + }); |