Skip to content

Commit

Permalink
tools: respect set features when adding addresses
Browse files Browse the repository at this point in the history
Fixes: https://tracker.ceph.com/issues/53751
Signed-off-by: Radosław Zarzyński <[email protected]>
  • Loading branch information
rzarzynski committed Nov 4, 2024
1 parent afc2149 commit 19545eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tools/monmaptool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 19545eb

Please sign in to comment.