]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
tools: respect set features when adding addresses
authorRadosław Zarzyński <rzarzyns@redhat.com>
Tue, 8 Oct 2024 13:14:49 +0000 (15:14 +0200)
committerRadosław Zarzyński <rzarzyns@redhat.com>
Mon, 4 Nov 2024 20:06:37 +0000 (21:06 +0100)
Fixes: https://tracker.ceph.com/issues/53751
Signed-off-by: Radosław Zarzyński <rzarzyns@redhat.com>
src/tools/monmaptool.cc

index f1b86e00362cc1309cf05999fec2e13270ae0c9a..dc882a006a21b278cedc09d93f0c40fd971d2843 100644 (file)
@@ -375,6 +375,10 @@ int main(int argc, const char **argv)
       return r;
   }
 
+  if (handle_features(features, monmap)) {
+    modified = true;
+  }
+
   if (min_mon_release != ceph_release_t::unknown) {
     monmap.min_mon_release = min_mon_release;
     cout << "setting min_mon_release = " << min_mon_release << std::endl;
@@ -459,10 +463,6 @@ int main(int argc, const char **argv)
     monmap.remove(p);
   }
 
-  if (handle_features(features, monmap)) {
-    modified = true;
-  }
-
   if (!print && !modified && !show_features) {
     cerr << "no action specified" << std::endl;
     helpful_exit();