blob: 322c47aa39839ed86c77c5be1ec677ef84317e03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// https://jira.mongodb.org/browse/SERVER-4534
t = db.huge_multikey_index
t.drop()
function doit() {
arr = []
for (var i=0; i< 1000*1000;i++)
arr.push(i);
t.insert({a:arr})
//t.ensureIndex({a:1}, {background:true}) // works!
t.ensureIndex({a:1}) // boom!
}
// doit(); // SERVER-4534
|