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