Skip to content

Commit

Permalink
node: Fix expired LOCK object removal
Browse files Browse the repository at this point in the history
Locked objects are prohibited to be removed by a user operation so `Force`
should be applied to the expired LOCK objects.

Signed-off-by: Pavel Karpy <[email protected]>
  • Loading branch information
carpawell committed Aug 31, 2023
1 parent 41fe314 commit 087b2f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/local_object_storage/shard/gc.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ func (s *Shard) HandleExpiredLocks(lockers []oid.Address) {

var pInhume meta.InhumePrm
pInhume.SetAddresses(append(lockers, expired...)...)
pInhume.SetGCMark()
pInhume.SetForceGCMark()

res, err := s.metaBase.Inhume(pInhume)
if err != nil {
Expand Down

0 comments on commit 087b2f7

Please sign in to comment.