Add MmapStats when using rocksdb storage engine (#3930)

This commit is contained in:
Daniel Nelson 2018-03-29 13:32:05 -07:00 committed by GitHub
parent b99cd14129
commit 0c1293ad5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ func (d *MongodbData) AddDefaultStats() {
}
d.addStat(statLine, DefaultClusterStats)
d.addStat(statLine, DefaultShardStats)
if d.StatLine.StorageEngine == "mmapv1" {
if d.StatLine.StorageEngine == "mmapv1" || d.StatLine.StorageEngine == "rocksdb" {
d.addStat(statLine, MmapStats)
} else if d.StatLine.StorageEngine == "wiredTiger" {
for key, value := range WiredTigerStats {