From: Rishabh Dave Date: Wed, 29 Jan 2025 12:34:55 +0000 (+0530) Subject: cephfs,mon: rename variable to a better name X-Git-Tag: v20.0.0~19^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cf68e49597dc065d375666d0e4cb237cef223419;p=ceph.git cephfs,mon: rename variable to a better name Signed-off-by: Rishabh Dave --- diff --git a/src/mon/FSCommands.cc b/src/mon/FSCommands.cc index 8caab5011a3..539c7315b4c 100644 --- a/src/mon/FSCommands.cc +++ b/src/mon/FSCommands.cc @@ -122,15 +122,15 @@ class FailHandler : public FileSystemCommandHandler }; fsmap.modify_filesystem(fsp->get_fscid(), std::move(f)); - vector to_fail; + vector mds_gids_to_fail; for (const auto& p : fsp->get_mds_map().get_mds_info()) { - to_fail.push_back(p.first); + mds_gids_to_fail.push_back(p.first); } - for (const auto& gid : to_fail) { + for (const auto& gid : mds_gids_to_fail) { mon->mdsmon()->fail_mds_gid(fsmap, gid); } - if (!to_fail.empty()) { + if (!mds_gids_to_fail.empty()) { mon->osdmon()->propose_pending(); }