[#1699] meta: Do not return SplitInfoError on Delete

It is not an error: removing virtual object is expected and should be just
skipped. Getting a virtual object with `raw` flag is considered as an
impossible action, all the virtual objects removals will be handled via
their children's removals implicitly.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-09-04 11:52:01 +03:00 committed by fyrchik
parent a3e7365cbd
commit 2849e465f9
3 changed files with 7 additions and 3 deletions

View file

@ -39,9 +39,9 @@ func TestDB_Delete(t *testing.T) {
require.NoError(t, err)
require.Len(t, l, 1)
// try to remove parent unsuccessfully
// try to remove parent, should be no-op, error-free
err = metaDelete(db, object.AddressOf(parent))
require.Error(t, err)
require.NoError(t, err)
// inhume parent and child so they will be on graveyard
ts := generateObjectWithCID(t, cnr)