Details
-
Improvement
-
Status: Closed
-
Minor - P4
-
Resolution: Duplicate
-
2.8.0-rc0
-
None
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
- duplicates
-
SERVER-16917 Return fileSize to db.stats() when using wiredTiger
-
- Closed
-