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"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Shell
    • None
    • ALL

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: