1 parent 72b163b commit e2470f6Copy full SHA for e2470f6
1 file changed
cmd/opera/launcher/dbcmd.go
@@ -136,7 +136,7 @@ func compact(ctx *cli.Context) error {
136
}
137
138
log.Info("Stats before compaction", "db", humanName)
139
- showLeveldbStats(db)
+ showDbStats(db)
140
141
log.Info("Triggering compaction", "db", humanName)
142
for b := byte(0); b < 255; b++ {
@@ -148,14 +148,14 @@ func compact(ctx *cli.Context) error {
148
149
150
log.Info("Stats after compaction", "db", humanName)
151
152
153
154
155
return nil
156
157
158
-func showLeveldbStats(db ethdb.Stater) {
+func showDbStats(db ethdb.Stater) {
159
if stats, err := db.Stat("stats"); err != nil {
160
log.Warn("Failed to read database stats", "error", err)
161
} else {
0 commit comments