mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-30 08:50:48 +01:00
storage: fix corrupted leveldb detection in DoOffsetLoading (#10650)
This commit is contained in:
1 parent
ce7d388639
commit
5b9236c76d
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user