forked from TrueCloudLab/frostfs-node
[#1559] metabase: Remove public functions
Reduce public interface of this package. Later each result will contain an additional status, so it makes more sense to use the same functions and result processing everywhere. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
30c7925b3c
commit
f58234aa2f
31 changed files with 234 additions and 247 deletions
|
@ -35,7 +35,7 @@ func TestDB_Lock(t *testing.T) {
|
|||
obj.SetContainerID(cnr)
|
||||
|
||||
// save irregular object
|
||||
err := meta.Put(db, obj, nil)
|
||||
err := metaPut(db, obj, nil)
|
||||
require.NoError(t, err, typ)
|
||||
|
||||
var e apistatus.LockNonRegularObject
|
||||
|
@ -95,7 +95,7 @@ func TestDB_Lock(t *testing.T) {
|
|||
lockAddr := objectcore.AddressOf(lockObj)
|
||||
|
||||
// try to inhume locked object using tombstone
|
||||
err := meta.Inhume(db, objAddr, lockAddr)
|
||||
err := metaInhume(db, objAddr, lockAddr)
|
||||
require.ErrorAs(t, err, new(apistatus.ObjectLocked))
|
||||
|
||||
// free locked object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue