blob: 9d361dc16a7a215831bb2c3df0a2506b62a9084c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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();
|