From 83e01161bab30fdcd278528c38558c5b137757e9 Mon Sep 17 00:00:00 2001 From: Gregory Newman-Smith <109068393+gregns1@users.noreply.github.com> Date: Fri, 8 Nov 2024 14:47:03 +0000 Subject: [PATCH] Update db/background_mgr_attachment_migration.go Co-authored-by: Ben Brooks --- db/background_mgr_attachment_migration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/background_mgr_attachment_migration.go b/db/background_mgr_attachment_migration.go index ddcc908fc6..66db30ecb1 100644 --- a/db/background_mgr_attachment_migration.go +++ b/db/background_mgr_attachment_migration.go @@ -73,7 +73,7 @@ func (a *AttachmentMigrationManager) Init(ctx context.Context, options map[strin // If the previous run completed, or there was an error during unmarshalling the status we will start the // process from scratch with a new migration ID. Otherwise, we should resume with the migration ID, stats specified in the doc. - if statusDoc.State == BackgroundProcessStateCompleted || err != nil || (reset && ok) { + if statusDoc.State == BackgroundProcessStateCompleted || err != nil || reset { return newRunInit() } a.MigrationID = statusDoc.MigrationID