forked from TrueCloudLab/frostfs-contract
[#150] frostfsid: Allow migration from 0.21.1
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
parent
0653f0dbc6
commit
6922c70257
1 changed files with 14 additions and 12 deletions
|
@ -116,6 +116,7 @@ func _deploy(data any, isUpdate bool) {
|
|||
|
||||
if isUpdate {
|
||||
common.CheckVersion(args.version)
|
||||
if args.version < common.GetVersion(0, 21, 1) {
|
||||
it := storage.Find(ctx, subjectKeysPrefix, storage.ValuesOnly)
|
||||
for iterator.Next(it) {
|
||||
subjectRaw := iterator.Value(it)
|
||||
|
@ -134,6 +135,7 @@ func _deploy(data any, isUpdate bool) {
|
|||
storage.Put(ctx, address, true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if args.version < common.GetVersion(0, 21, 2) {
|
||||
maxGroupID := 0
|
||||
|
|
Loading…
Add table
Reference in a new issue