[#150] frostfsid: Allow migration from 0.21.1

Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
Alexander Chuprov 2025-03-11 11:26:09 +03:00
parent 0653f0dbc6
commit 6922c70257
Signed by: achuprov
GPG key ID: 2D916FFD803B0EDD

View file

@ -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