summaryrefslogtreecommitdiff
path: root/jstests/concurrency/fsm_workloads/indexed_insert_eval_nolock.js
blob: 33e8ef41d5681be7c83b587e56f8ae05f6727d10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
'use strict';

/**
 * indexed_insert_eval_nolock.js
 *
 * Inserts multiple documents into an indexed collection using the eval command
 * with the option { nolock: true }. Asserts that all documents appear in both a
 * collection scan and an index scan.  The indexed value is the thread id.
 */
load('jstests/concurrency/fsm_libs/extend_workload.js');           // for extendWorkload
load('jstests/concurrency/fsm_workloads/indexed_insert_eval.js');  // for $config

var $config = extendWorkload($config,
                             function($config, $super) {

                                 $config.data.nolock = true;

                                 return $config;
                             });