summaryrefslogtreecommitdiff
path: root/jstests/aggregation/bugs/server10530.js
blob: eebfd60f15bb0665a1266c33b8afa2b14c4135a2 (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();