]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/varlink: several cleanups for metrics varlink server
authorMike Yuan <me@yhndnzj.com>
Fri, 13 Feb 2026 16:37:10 +0000 (17:37 +0100)
committerMike Yuan <me@yhndnzj.com>
Mon, 16 Feb 2026 08:44:58 +0000 (09:44 +0100)
commit9676845efa8b3d4140ab7bb8e567d22717c66b9e
tree72c77c511745c65830e5f8679e7d6bedd7d52f04
parentba08fa3230adb20159e3260e01db8f8f38f933e7
core/varlink: several cleanups for metrics varlink server

Follow-up for bb1ef2edf7d62de35291702635067ee85f09bad5

The commit introduced a new "metrics" varlink server, but for
user scope stuff it is not bound anywhere. The copy-pasted
"fresh" handling for deserialization is also essentially
meaningless as metrics_setup_varlink_server() doesn't even report
whether the varlink server is fresh (let alone that no serialization
is being done at all right now). Moreover, currently the event
priority is hardcoded, while event loop and associated priority
assignment ought to be subject to each daemon.

While fixing the mentioned issues I took the chance to restructure
the existing code a bit for readability. Note that serialization
for the metrics server is still missing - it will be tackled
in subsequent commits.
src/core/varlink.c
src/core/varlink.h
src/shared/metrics.c
src/shared/metrics.h