]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonClient: add get_monmap_required_features() helper
authorSamuel Just <sjust@redhat.com>
Fri, 7 Nov 2025 00:36:24 +0000 (16:36 -0800)
committerTomer Haskalovitch <tomer.haska@ibm.com>
Tue, 27 Jan 2026 09:27:36 +0000 (11:27 +0200)
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 958080913083af4805f0cc4114c5c96606b05212)

src/mon/MonClient.h

index 0db83a7f3af79f77c99d1c8756caa56be8e3c9f1..34c9850a9caf0193ea003b347cdfc3ccbf8f5eff 100644 (file)
@@ -806,6 +806,12 @@ public:
     return std::forward<Callback>(cb)(monmap, std::forward<Args>(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<void(void)> f) {
     config_notify_cb = f;