forked from TrueCloudLab/frostfs-node
[#838] metabase: Add user object type counter
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
29550fe600
commit
f314da4af3
8 changed files with 247 additions and 227 deletions
|
@ -347,8 +347,8 @@ func TestRefillMetabase(t *testing.T) {
|
|||
c, err := sh.metaBase.ObjectCounters()
|
||||
require.NoError(t, err)
|
||||
|
||||
phyBefore := c.Phy()
|
||||
logicalBefore := c.Logic()
|
||||
phyBefore := c.Phy
|
||||
logicalBefore := c.Logic
|
||||
|
||||
err = sh.Close()
|
||||
require.NoError(t, err)
|
||||
|
@ -382,8 +382,8 @@ func TestRefillMetabase(t *testing.T) {
|
|||
c, err = sh.metaBase.ObjectCounters()
|
||||
require.NoError(t, err)
|
||||
|
||||
require.Equal(t, phyBefore, c.Phy())
|
||||
require.Equal(t, logicalBefore, c.Logic())
|
||||
require.Equal(t, phyBefore, c.Phy)
|
||||
require.Equal(t, logicalBefore, c.Logic)
|
||||
|
||||
checkAllObjs(true)
|
||||
checkObj(object.AddressOf(tombObj), tombObj)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue