[#424] writecache: Drop metrics when close
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
07f155ac77
commit
85deb12f4d
4 changed files with 18 additions and 0 deletions
|
@ -28,6 +28,7 @@ type Metrics interface {
|
|||
SetEstimateSize(db, fstree uint64)
|
||||
SetMode(m mode.Mode)
|
||||
SetActualCounters(db, fstree uint64)
|
||||
Close()
|
||||
}
|
||||
|
||||
type metricsStub struct{}
|
||||
|
@ -47,3 +48,5 @@ func (s *metricsStub) SetActualCounters(uint64, uint64) {}
|
|||
func (s *metricsStub) Flush(bool, StorageType) {}
|
||||
|
||||
func (s *metricsStub) Evict(StorageType) {}
|
||||
|
||||
func (s *metricsStub) Close() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue