Skip to content

Commit

Permalink
fix: continue migration on error (#3715)
Browse files Browse the repository at this point in the history
  • Loading branch information
aloknerurkar authored Jan 20, 2023
1 parent fda20ca commit 1992b84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/localstore/migration_residue.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ func migrateResidue(db *DB) error {
sItem, err := retrievalDataIndex.Get(item)
switch {
case errors.Is(err, leveldb.ErrNotFound):
return true, nil
// continue iteration on error
return false, nil
case err != nil:
return true, fmt.Errorf("retrievalIndex not found: %w", err)
}
Expand Down

0 comments on commit 1992b84

Please sign in to comment.