[SERVER-3216] sparse indexes not sparse in certain array cases Created: 08/Jun/11  Updated: 12/Jul/16  Resolved: 01/Aug/11

Status: Closed
Project: Core Server
Component/s: Index Maintenance
Affects Version/s: None
Fix Version/s: 1.9.2

Type: Bug Priority: Major - P3
Reporter: Aaron Staple Assignee: Aaron Staple
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-3375 key generation fixes master ticket Closed
Operating System: ALL
Participants:

 Description   

> c.drop();
true
> c.ensureIndex(

{'a.b':1}

,

{sparse:true}

);
> c.save(

{a:[]}

); // an entry is generated in the index
> c.save(

{a:1}

); // no entry is generated in the index
> c.find().hint(

{'a.b':1}

).itcount()
1



 Comments   
Comment by auto [ 31/Jul/11 ]

Author:

{u'login': u'astaple', u'name': u'Aaron', u'email': u'aaron@10gen.com'}

Message: SERVER-3216 test
Branch: master
https://github.com/mongodb/mongo/commit/d7b89e22586ff1525152bf7a3d637b472aebfa5f

Generated at Thu Feb 08 03:02:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.