Skip to content

Commit

Permalink
Merge pull request ceph#60197 from rzarzynski/wip-bug-53751
Browse files Browse the repository at this point in the history
tools: respect set features when adding addresses

Reviewed-by: Laura Flores <[email protected]>
Reviewed-by: Patrick Donnelly <[email protected]>
  • Loading branch information
yuriw authored Dec 16, 2024
2 parents ced280c + 19545eb commit e53e5e9
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 e53e5e9

Please sign in to comment.