[#1461] node: Allow force LOCK removal

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-05-31 23:11:42 +03:00 committed by fyrchik
parent 25826bd96d
commit 9c5ef3bab8
4 changed files with 64 additions and 2 deletions

View file

@ -36,6 +36,7 @@ func initControlService(c *cfg) {
controlSvc.WithDeletedObjectHandler(func(addrList []oid.Address) error {
var prm engine.DeletePrm
prm.WithAddresses(addrList...)
prm.WithForceRemoval()
_, err := c.cfgObject.cfgLocalStorage.localStorage.Delete(prm)