]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/ActivePyModules: refactor perf schema section management to use RAII 69181/head
authorstzuraski898 <steven.zuraski@ibm.com>
Wed, 3 Jun 2026 19:54:50 +0000 (19:54 +0000)
committerstzuraski898 <steven.zuraski@ibm.com>
Mon, 15 Jun 2026 21:19:09 +0000 (21:19 +0000)
commit078b140ad162c8cb88f651ff9ab1be32af997588
tree517a172f9a3af01bd7cfb2e298e1ed38d596a44b
parentcf5b149eecfc0a1d2038d667b37d2133ac741c97
mgr/ActivePyModules: refactor perf schema section management to use RAII

Refactor get_perf_schema_python() and get_unlabeled_perf_schema_python() to use Formatter::ObjectSection and Formatter::ArraySection RAII helpers instead of manual close_section() calls. Manual closes have have led to crashes when close_section() calls were left unguarded, for example when an OSD with no perf counters had it's perf counters queried.

Fixes: https://tracker.ceph.com/issues/74693
Signed-off-by: stzuraski898 <steven.zuraski@ibm.com>
src/mgr/ActivePyModules.cc