[SERVER-4104] show this->n on shape() in btree bucket Created: 20/Oct/11  Updated: 11/Jul/16  Resolved: 28/Oct/11

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

Type: Improvement Priority: Trivial - P5
Reporter: Guanqun Lu Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: debug
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

During the debugging process of btree index, I find adding the number of key nodes to shape is useful, it gives me the quick overview of how many keys are added into each btree bucket.

This 'shape' interface, I suppose, is used mainly for debugging purpose, no? So changing the output a bit should be OK.

Using 'dump' interface to dump all data is nice to have, but sometimes, it pollutes the output and make debugging less happy. That's why I need this feature, less verbose than 'dump', but more info than current 'shape'.

A simple fix will be added.



 Comments   
Comment by auto [ 28/Oct/11 ]

Author:

{u'login': u'erh', u'name': u'Eliot', u'email': u'eliot@10gen.com'}

Message: Merge pull request #128 from guanqun/add-key-number-to-shape

add the number of key node numbers to shape SERVER-4104
Branch: master
https://github.com/mongodb/mongo/commit/1903a071fa6427737817d9f8414f91c83c24674d

Comment by Guanqun Lu [ 20/Oct/11 ]

Here's the pull request: https://github.com/mongodb/mongo/pull/128
Only one line is added...

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