Skip to content

Commit

Permalink
Make sure metrics are registered before reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-scherbina committed Jul 3, 2024
1 parent 3a6e771 commit d62f565
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions opendb_rocksdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@ func reportMetrics(dbName string, db *grocksdb.DB, interval time.Duration) {
continue
}

if rocksdbMetrics == nil {
continue
}
rocksdbMetrics.report(dbName, props, stats)
}
}
Expand Down

0 comments on commit d62f565

Please sign in to comment.