mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-22 04:59:34 +01:00
d16cc7c8fd
GitOrigin-RevId: e6ebf2274d35fa4d8565a9ba9a14960f88451c6d
14 lines
429 B
JavaScript
14 lines
429 B
JavaScript
let t = db.jstests_remove9;
|
|
t.drop();
|
|
|
|
let js =
|
|
"while( 1 ) { for( i = 0; i < 10000; ++i ) { db.jstests_remove9.save( {i:i} ); } db.jstests_remove9.remove( {i: {$gte:0} } ); }";
|
|
let pid = startMongoProgramNoConnect("mongo", "--eval", js, db ? db.getMongo().host : null);
|
|
|
|
Random.setRandomSeed();
|
|
for (var i = 0; i < 10000; ++i) {
|
|
assert.commandWorked(t.remove({i: Random.randInt(10000)}));
|
|
}
|
|
|
|
stopMongoProgramByPid(pid);
|