[SERVER-320] inaccurate count() when using $all Created: 29/Sep/09  Updated: 12/Jul/16  Resolved: 22/Oct/09

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 1.1.0
Fix Version/s: 1.1.3

Type: Bug Priority: Major - P3
Reporter: aaron krill Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 9.04, EC2 small instance


Participants:

 Description   

>>> model.find({"tags":{"$all":["bittorrent","client"]}}).count()
19
>>> len(list(model.find({"tags":{"$all":["bittorrent","client"]}})))
1

that doesn't seem right to me. let me know what other info you need.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 29/Sep/09 ]

I can't reproduce this in master.
Can you send the data, or a script that by itself reproduces the problem.
you can look at jstests/all2.js for a number of unit tests

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