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

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

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

      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 Unassigned
            Reporter:
            mharen Michael Haren
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: