Skip to content

Commit 1992b84

Browse files
authored
fix: continue migration on error (#3715)
1 parent fda20ca commit 1992b84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/localstore/migration_residue.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ func migrateResidue(db *DB) error {
132132
sItem, err := retrievalDataIndex.Get(item)
133133
switch {
134134
case errors.Is(err, leveldb.ErrNotFound):
135-
return true, nil
135+
// continue iteration on error
136+
return false, nil
136137
case err != nil:
137138
return true, fmt.Errorf("retrievalIndex not found: %w", err)
138139
}

0 commit comments

Comments
 (0)