-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.8.3
-
Component/s: None
-
None
-
ALL
Creating an index on an array can cause documents to be omitted from query results.
Reproduction steps:
> doc =
;
{ "_id" : 1, "arr" : [ ] }> db.test.insert(doc);
> db.test.findOne(doc);
> db.test.ensureIndex(
{ arr : 1 });
> db.test.findOne(doc);
null