node: do not double-wrap KV stores (#32089)
Some checks are pending
/ Linux Build (push) Waiting to run
/ Linux Build (arm) (push) Waiting to run
/ Docker Image (push) Waiting to run

For no apparent reason, KV stores were getting wrapped in `nofreezedb`
first and then in `freezerdb`.
This commit is contained in:
Ömer Faruk Irmak 2025-06-27 10:27:52 +03:00 committed by GitHub
parent 8e17b371fd
commit aa1de05720
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -109,7 +109,7 @@ func newLevelDBDatabase(file string, cache int, handles int, namespace string, r
return nil, err
}
log.Info("Using LevelDB as the backing database")
return rawdb.NewDatabase(db), nil
return db, nil
}
// newPebbleDBDatabase creates a persistent key-value database without a freezer
@ -119,5 +119,5 @@ func newPebbleDBDatabase(file string, cache int, handles int, namespace string,
if err != nil {
return nil, err
}
return rawdb.NewDatabase(db), nil
return db, nil
}