[SERVER-18881] Limit with explain("executionStats") has limitAmount as 0 Created: 08/Jun/15  Updated: 05/Feb/16  Resolved: 09/Jun/15

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 3.1.5

Type: Bug Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

Run the following

db.limit_test.insert([{a:1},{a:2}])
db.limit_test.find().limit(1).explain()
db.limit_test.find().limit(1).explain("executionStats")

The explain() will show limitAmount of 1
The explain("executionStats") will show limitAmount of 0

Sprint: RPL 5 06/26/16
Participants:

 Description   

When a query with a limit is executed with a simple explain, it shows limitAmount as the user specified limit. When it is executed with explain("executionStats"), it always shows limitAmount as 0.



 Comments   
Comment by Githook User [ 17/Jun/15 ]

Author:

{u'username': u'agralius', u'name': u'Andreas Nilsson', u'email': u'andreas.nilsson@10gen.com'}

Message: SERVER-18881 Changed unique_ptr _key from uint8_t to uint8t[]
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/b71a9f85280f52ec3000c67fb3eaed5323edf920

Comment by Githook User [ 09/Jun/15 ]

Author:

{u'username': u'kevinAlbs', u'name': u'Kevin Albertson', u'email': u'kevin.albertson@10gen.com'}

Message: SERVER-18881 Corrects limitAmount on explain

Closes #980

Signed-off-by: David Storch <david.storch@10gen.com>
Branch: master
https://github.com/mongodb/mongo/commit/4a37e349883983236db844bbb10ce786b3f1df0b

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