diff options
Diffstat (limited to 'jstests/noPassthroughWithMongod/btreedel.js')
-rw-r--r-- | jstests/noPassthroughWithMongod/btreedel.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/noPassthroughWithMongod/btreedel.js b/jstests/noPassthroughWithMongod/btreedel.js index 89af6aa7d5d..13c3bb3b685 100644 --- a/jstests/noPassthroughWithMongod/btreedel.js +++ b/jstests/noPassthroughWithMongod/btreedel.js @@ -5,13 +5,13 @@ t.remove({}); var bulk = t.initializeUnorderedBulkOp();
for (var i = 0; i < 1000000; i++) {
- bulk.insert({ _id: i, x: 'a b' });
+ bulk.insert({_id: i, x: 'a b'});
}
assert.writeOK(bulk.execute());
print("1 insert done count: " + t.count());
-var c = t.find({y:null}).sort({ _id: 1 });
+var c = t.find({y: null}).sort({_id: 1});
for (var j = 0; j < 400000; j++) {
c.next();
if (j % 200000 == 0)
@@ -19,12 +19,12 @@ for (var j = 0; j < 400000; j++) { }
printjson(c.next());
-var d = t.find({ _id: { $gt: 300000} }).sort({ _id: -1 });
+var d = t.find({_id: {$gt: 300000}}).sort({_id: -1});
d.next();
print("2");
-t.remove({ _id: { $gt: 200000, $lt: 600000} });
+t.remove({_id: {$gt: 200000, $lt: 600000}});
print("3");
print(d.hasNext());
|