From: Samuel Just Date: Fri, 7 Nov 2025 00:36:24 +0000 (-0800) Subject: mon/MonClient: add get_monmap_required_features() helper X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=958080913083af4805f0cc4114c5c96606b05212;p=ceph.git mon/MonClient: add get_monmap_required_features() helper Signed-off-by: Samuel Just --- diff --git a/src/mon/MonClient.h b/src/mon/MonClient.h index 3b78ea62ae2..9659ae5b1b7 100644 --- a/src/mon/MonClient.h +++ b/src/mon/MonClient.h @@ -807,6 +807,12 @@ public: return std::forward(cb)(monmap, std::forward(args)...); } + mon_feature_t get_monmap_required_features() { + return with_monmap([](const auto &monmap) { + return monmap.get_required_features(); + }); + } + void register_config_callback(md_config_t::config_callback fn); void register_config_notify_callback(std::function f) { config_notify_cb = f;