forked from TrueCloudLab/frostfs-node
[#373] local storage: Pass parent ID
This is required to add shard ID as metric label. Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
d5aaec1107
commit
d8ecc69d00
16 changed files with 47 additions and 0 deletions
|
@ -3,6 +3,7 @@ package blobstor
|
|||
import "time"
|
||||
|
||||
type Metrics interface {
|
||||
SetParentID(parentID string)
|
||||
SetMode(readOnly bool)
|
||||
Close()
|
||||
|
||||
|
@ -16,6 +17,7 @@ type Metrics interface {
|
|||
|
||||
type noopMetrics struct{}
|
||||
|
||||
func (m *noopMetrics) SetParentID(string) {}
|
||||
func (m *noopMetrics) SetMode(bool) {}
|
||||
func (m *noopMetrics) Close() {}
|
||||
func (m *noopMetrics) Delete(time.Duration, bool, bool) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue