blob: ebf7163c77d1839a94d5253b7926c3454690a64d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//
// Shards data from the key range, then inserts orphan documents, runs cleanupOrphans
// and makes sure that orphans are removed. Uses a compound shard key.
//
load('./jstests/libs/cleanup_orphaned_util.js');
testCleanupOrphaned({
shardKey: {a: 1, b: 1},
keyGen: function() {
var ids = [];
for (var i = -50; i < 50; i++) {
ids.push({a: i, b: Math.random()});
}
return ids;
}
});
|