Skip to content

Commit aa1de05

Browse files
authored
node: do not double-wrap KV stores (#32089)
For no apparent reason, KV stores were getting wrapped in `nofreezedb` first and then in `freezerdb`.
1 parent 8e17b37 commit aa1de05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node/database.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func newLevelDBDatabase(file string, cache int, handles int, namespace string, r
109109
return nil, err
110110
}
111111
log.Info("Using LevelDB as the backing database")
112-
return rawdb.NewDatabase(db), nil
112+
return db, nil
113113
}
114114

115115
// newPebbleDBDatabase creates a persistent key-value database without a freezer
@@ -119,5 +119,5 @@ func newPebbleDBDatabase(file string, cache int, handles int, namespace string,
119119
if err != nil {
120120
return nil, err
121121
}
122-
return rawdb.NewDatabase(db), nil
122+
return db, nil
123123
}

0 commit comments

Comments
 (0)