forked from TrueCloudLab/frostfs-node
[#1385] metabase: Validate that tombstone and target have the same container ID
Target container ID is taken from tombstone: cmd/frostfs-node/object.go:507 Also object of type `TOMBSTONE` contains objectID, so tombstone and tombstoned object must have the same containerID. Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
8434f3dbfc
commit
76268e3ea2
16 changed files with 108 additions and 52 deletions
|
@ -41,7 +41,7 @@ func TestReset(t *testing.T) {
|
|||
err = putBig(db, obj)
|
||||
require.NoError(t, err)
|
||||
|
||||
err = metaInhume(db, addrToInhume, oidtest.Address())
|
||||
err = metaInhume(db, addrToInhume, oidtest.ID())
|
||||
require.NoError(t, err)
|
||||
|
||||
assertExists(addr, true, nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue