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

Suppress mmapv1 specific stats from db.stats() WT

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.8.0-rc0
    • Component/s: Diagnostics, Storage

      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
      }
      

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

              Created:
              Updated:
              Resolved: