[SERVER-6351] Make mongostat adjust column width for variable length field "db locks" Created: 08/Jul/12  Updated: 11/Jul/16  Resolved: 18/Jul/12

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 2.1.2
Fix Version/s: 2.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: Daniel Pasette (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

mongostat needs to adjust the column width for the "db locks" stats based on the longest database name it will need to print. If it doesn't, the stats get mis-aligned.

Since it is not possible to know in advance which database will be printed, the width can increase to the required size lazily (once it needs to be printed) and stay at that width.



 Comments   
Comment by auto [ 12/Jul/12 ]

Author:

{u'date': u'2012-07-11T21:46:09-07:00', u'email': u'dan@10gen.com', u'name': u'Dan Pasette'}

Message: SERVER-6351 - make db locks column variable width in mongostat
Branch: master
https://github.com/mongodb/mongo/commit/cbcdc12a99bf342924f9312f669a0434630e10e8

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