From 1992b846d71e89b641df67e41ea3561d0c846f18 Mon Sep 17 00:00:00 2001 From: aloknerurkar Date: Fri, 20 Jan 2023 18:07:09 +0530 Subject: [PATCH] fix: continue migration on error (#3715) --- pkg/localstore/migration_residue.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/localstore/migration_residue.go b/pkg/localstore/migration_residue.go index e236bae3c10..a817fd11834 100644 --- a/pkg/localstore/migration_residue.go +++ b/pkg/localstore/migration_residue.go @@ -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) }