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 2fe2622327
commit 4218eb7367
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, DefaultClusterStats)
d.addStat(statLine, DefaultShardStats) d.addStat(statLine, DefaultShardStats)
if d.StatLine.StorageEngine == "mmapv1" { if d.StatLine.StorageEngine == "mmapv1" || d.StatLine.StorageEngine == "rocksdb" {
d.addStat(statLine, MmapStats) d.addStat(statLine, MmapStats)
} else if d.StatLine.StorageEngine == "wiredTiger" { } else if d.StatLine.StorageEngine == "wiredTiger" {
for key, value := range WiredTigerStats { for key, value := range WiredTigerStats {