db.stats(scale) and db.collection.stats(scale) are inconsistent w.r.t. "avgObjSize"

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When I run

      db.stats(1024)
      

      Each result is in kilobytes except avgObjSize. For that field, db.stats() and db.stats(1024) produce the exact same unscaled number.

      When I run

      db.myCollection.stats(1024)
      

      however, avgObjSize is scaled correctly.

      The value should be scaled by both commands.

            Assignee:
            Unassigned
            Reporter:
            Michael Haren
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: