Skip to content

Commit

Permalink
Update db/background_mgr_attachment_migration.go
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Brooks <[email protected]>
  • Loading branch information
gregns1 and bbrks authored Nov 8, 2024
1 parent 108e9d9 commit 83e0116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/background_mgr_attachment_migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83e0116

Please sign in to comment.