Skip to content

Commit

Permalink
run migration to fix up storage-used at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Apr 15, 2024
1 parent 2f9ffa7 commit d65c151
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cmd/util/cmd/execution-state-extract/execution_state_extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,18 @@ func newMigrations(
migrations = append(migrations, migration.Migrate)
}

// At the end, fix up storage-used discrepancies
migrations = append(
migrations,
migrators.NewAccountBasedMigration(
log,
opts.NWorker,
[]migrators.AccountBasedMigration{
&migrators.AccountUsageMigrator{},
},
),
)

log.Info().Msgf("initialized migrations")

return migrations
Expand Down

0 comments on commit d65c151

Please sign in to comment.