Skip to content

Commit

Permalink
Merge pull request #283 from july2993/hjh/stat
Browse files Browse the repository at this point in the history
db.go: Don't skip some level for Stat
  • Loading branch information
syndtr authored Jun 25, 2019
2 parents c3a204f + c8392d1 commit 02440ea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions leveldb/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -1070,9 +1070,7 @@ func (db *DB) Stats(s *DBStats) error {

for level, tables := range v.levels {
duration, read, write := db.compStats.getStat(level)
if len(tables) == 0 && duration == 0 {
continue
}

s.LevelDurations = append(s.LevelDurations, duration)
s.LevelRead = append(s.LevelRead, read)
s.LevelWrite = append(s.LevelWrite, write)
Expand Down

0 comments on commit 02440ea

Please sign in to comment.