[SERVER-12985] getIndexStats doesn't print correct index name Created: 01/Mar/14  Updated: 11/Jul/16  Resolved: 04/Mar/14

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 2.4.9
Fix Version/s: 2.6.0-rc1

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

Operating System: ALL
Participants:

 Description   

> db.t1.getIndexStats({index:"_id_"});
-- index "undefined" --
...

This is because it prints stats.name instead of stats.index (indexStats returns the name in the field "index").



 Comments   
Comment by Githook User [ 04/Mar/14 ]

Author:

{u'username': u'asya999', u'name': u'Asya Kamsky', u'email': u'asya999@gmail.com'}

Message: SERVER-12985 fix display index name

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/cce595e3b3777610251a7c181ebba3cd907dac67

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