fix(flash): update read metric

with: #1000451308

Signed-off-by: clinx <chenlin1@oppo.com>
This commit is contained in:
clinx 2025-11-26 17:05:32 +08:00
parent c171ba1a1c
commit 1581da2e1c

View File

@ -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_ {