Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6351

Make mongostat adjust column width for variable length field "db locks"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.2.0-rc0
    • Component/s: Tools
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: