forked from TrueCloudLab/frostfs-node
[#1293] metabase: Fix out-of-range panic in freePotentialLocks
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
e62e02815b
commit
629a4f79cd
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ func freePotentialLocks(tx *bbolt.Tx, idCnr cid.ID, locker oid.ID) error {
|
||||||
// exclude locker
|
// exclude locker
|
||||||
keyLockers = append(keyLockers[:i], keyLockers[i+1:]...)
|
keyLockers = append(keyLockers[:i], keyLockers[i+1:]...)
|
||||||
|
|
||||||
v, err = encodeList(append(keyLockers[:i], keyLockers[i+1:]...))
|
v, err = encodeList(keyLockers)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("encode updated list of lockers: %w", err)
|
return fmt.Errorf("encode updated list of lockers: %w", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue