mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix(flash): update read metric
with: #1000451308 Signed-off-by: clinx <chenlin1@oppo.com>
This commit is contained in:
parent
c171ba1a1c
commit
1581da2e1c
@ -656,6 +656,8 @@ func (f *FlashNode) smallObjectGet(req *proto.BatchReadItem, connAddr string, de
|
||||
copy(buf[:req.Size_], diskDataBuf)
|
||||
}
|
||||
result.Data = buf[:req.Size_]
|
||||
f.metrics.updateReadCountMetric(block.GetRootPath())
|
||||
f.metrics.updateReadBytesMetric(req.Size_, block.GetRootPath())
|
||||
}
|
||||
}
|
||||
if uint64(readDiskSize) > req.Size_ {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user