Files
mongo/jstests/aggregation/bugs/server10530.js
2016-03-09 12:18:14 -05:00

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();