-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #721 from bloxapp/migration-7
Migration 7: clean operator removals corruptions
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
migrations/migration_7_clean_operator_removals_corruptions.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package migrations | ||
|
||
import ( | ||
"context" | ||
) | ||
|
||
var migrationCleanOperatorRemovalCorruptions = Migration{ | ||
Name: "migration_7_clean_operator_removal_corruptions", | ||
Run: func(ctx context.Context, opt Options, key []byte) error { | ||
nodeStorage := opt.nodeStorage() | ||
if err := nodeStorage.CleanRegistryData(); err != nil { | ||
return err | ||
} | ||
return opt.Db.Set(migrationsPrefix, key, migrationCompleted) | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters