]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/common: use the value_map passed to dump_metric_value_map() 69656/head
authorKefu Chai <k.chai@proxmox.com>
Tue, 23 Jun 2026 00:13:37 +0000 (08:13 +0800)
committerKefu Chai <k.chai@proxmox.com>
Wed, 24 Jun 2026 00:58:15 +0000 (08:58 +0800)
commit095cff07beab9dc98c982a46358ef1a728900126
tree2b3d3b8a4f9dafc48b11bce379693a06e5b1d26c
parentb4f29b38dfdd3ee2d83c44aa6ced47f704030d2f
crimson/common: use the value_map passed to dump_metric_value_map()

dump_metric_value_map() takes a value_map by const reference but ignored it
and iterated seastar::scollectd::get_value_map() instead.  Both callers already
fetch the map and pass it in, so the map was fetched twice per call and the
argument was dead.

Iterate vmap.  The output is unchanged, since the callers pass get_value_map(),
but the parameter now means what it says and the redundant fetch is gone.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
src/crimson/common/metrics_helpers.h