forked from TrueCloudLab/frostfs-node
Dmitrii Stepanov
10e63537b2
`Size` is not size, but open db size. Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
16 lines
429 B
Go
16 lines
429 B
Go
package blobovnicza
|
|
|
|
type Metrics interface {
|
|
IncOpenBlobovnizcaCount()
|
|
DecOpenBlobovnizcaCount()
|
|
|
|
AddOpenBlobovnizcaSize(size uint64)
|
|
SubOpenBlobovnizcaSize(size uint64)
|
|
}
|
|
|
|
type NoopMetrics struct{}
|
|
|
|
func (m *NoopMetrics) IncOpenBlobovnizcaCount() {}
|
|
func (m *NoopMetrics) DecOpenBlobovnizcaCount() {}
|
|
func (m *NoopMetrics) AddOpenBlobovnizcaSize(uint64) {}
|
|
func (m *NoopMetrics) SubOpenBlobovnizcaSize(uint64) {}
|