diff --git a/CHANGELOG.md b/CHANGELOG.md index d38dc4d9..d28c64df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -58,6 +58,7 @@ Changelog for NeoFS Node - Spawning useless `GETRANGE` with zero length for a big object (#2101) - Incomplete object put errors do contain the deepest error's message (#2092) - Prioritize internal addresses for clients (#2156) +- Force object removal via control service (#2145) ### Removed - `-g` option from `neofs-cli control ...` and `neofs-cli container create` commands (#2089) diff --git a/pkg/local_object_storage/metabase/inhume.go b/pkg/local_object_storage/metabase/inhume.go index f0317a81..cff88f4f 100644 --- a/pkg/local_object_storage/metabase/inhume.go +++ b/pkg/local_object_storage/metabase/inhume.go @@ -144,7 +144,7 @@ func (db *DB) Inhume(prm InhumePrm) (res InhumeRes, err error) { cnr := prm.target[i].Container() // prevent locked objects to be inhumed - if objectLocked(tx, cnr, id) { + if !prm.forceRemoval && objectLocked(tx, cnr, id) { return apistatus.ObjectLocked{} }