blob: 40134e978403f86d75c32cd8775ee59a3714c499 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
'use strict';
/**
* indexed_insert_2dsphere.js
*
* Inserts documents into an indexed collection and asserts that the documents
* appear in both a collection scan and an index scan. The indexed value is a
* legacy coordinate pair, indexed with a 2dsphere index.
*/
load('jstests/concurrency/fsm_libs/extend_workload.js'); // for extendWorkload
load('jstests/concurrency/fsm_workloads/indexed_insert_2d.js'); // for $config
var $config = extendWorkload($config, function($config, $super) {
$config.data.indexedField = 'indexed_insert_2dsphere';
$config.data.getIndexSpec = function getIndexSpec() {
var ixSpec = {};
ixSpec[this.indexedField] = '2dsphere';
return ixSpec;
};
return $config;
});
|