storage: fix corrupted leveldb detection in DoOffsetLoading (#10650)

This commit is contained in:
Mohit Talniya
2026-08-08 06:00:46 -07:00
committed by GitHub
parent ce7d388639
commit 5b9236c76d
+1 -1
View File
@@ -359,7 +359,7 @@ func (m *LevelDbNeedleMap) DoOffsetLoading(v *Volume, indexFile *os.File, startF
}()
if dbErr != nil {
if errors.IsCorrupted(err) {
if errors.IsCorrupted(dbErr) {
db, dbErr = leveldb.RecoverFile(dbFileName, nil)
}
if dbErr != nil {