[SERVER-16271] Suppress mmapv1 specific stats from db.stats() WT Created: 21/Nov/14  Updated: 22/May/15  Resolved: 22/May/15

Status: Closed
Project: Core Server
Component/s: Diagnostics, Storage
Affects Version/s: 2.8.0-rc0
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Jalpa Trivedi (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: 28qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-16917 Return fileSize to db.stats() when us... Closed
Related
Participants:

 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
}


Generated at Thu Feb 08 03:40:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.