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

Suppress mmapv1 specific stats from db.stats() WT

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Duplicate
    • 2.8.0-rc0
    • None
    • Diagnostics, Storage

    Description

      We expose mmapv1 specific stats in db.stats() output.

      These stats are:

      • fileSize

      fileSize is only exposed when you run db.stats() on a mongod where no collection is created yet.

      • db.stats() output on a system with no collection:

      > db.stats()
      {
      	"db" : "test",
      	"collections" : 0,
      	"objects" : 0,
      	"avgObjSize" : 0,
      	"dataSize" : 0,
      	"storageSize" : 0,
      	"numExtents" : 0,
      	"indexes" : 0,
      	"indexSize" : 0,
      	"fileSize" : 0,
      	"ok" : 1
      }

      • db.stats() output on a system that has one collection

      > db.stats()
      {
      	"db" : "test",
      	"collections" : 1,
      	"objects" : 2,
      	"avgObjSize" : 211.5,
      	"dataSize" : 423,
      	"storageSize" : 16384,
      	"numExtents" : 0,
      	"indexes" : 0,
      	"indexSize" : 0,
      	"ok" : 1
      }

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jalpa.trivedi@mongodb.com Jalpa Trivedi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: