From 70f3529b3196b6a7ff3340f7eb8802e75c7e4f9a Mon Sep 17 00:00:00 2001 From: Yixin Luo <18810541851@163.com> Date: Sun, 31 Jul 2022 19:41:33 +0800 Subject: [PATCH] fix cleveldb Stat() (#273) Co-authored-by: Marko --- cleveldb.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cleveldb.go b/cleveldb.go index 789673011..a4b467aad 100644 --- a/cleveldb.go +++ b/cleveldb.go @@ -154,14 +154,10 @@ func (db *CLevelDB) Print() error { // Stats implements DB. func (db *CLevelDB) Stats() map[string]string { keys := []string{ - "leveldb.aliveiters", - "leveldb.alivesnaps", - "leveldb.blockpool", - "leveldb.cachedblock", "leveldb.num-files-at-level{n}", - "leveldb.openedtables", "leveldb.sstables", "leveldb.stats", + "leveldb.approximate-memory-usage", } stats := make(map[string]string, len(keys))