mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
14 lines
336 B
JavaScript
14 lines
336 B
JavaScript
// SERVER-10530 Would error if large objects are in first batch
|
|
|
|
var t = db.server10530;
|
|
t.drop();
|
|
|
|
t.insert({big: Array(1024 * 1024).toString()});
|
|
t.insert({big: Array(16 * 1024 * 1024 - 1024).toString()});
|
|
t.insert({big: Array(1024 * 1024).toString()});
|
|
|
|
assert.eq(t.aggregate().itcount(), 3);
|
|
|
|
// clean up large collection
|
|
t.drop();
|