]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cephfs,mon: rename variable to a better name
authorRishabh Dave <ridave@redhat.com>
Wed, 29 Jan 2025 12:34:55 +0000 (18:04 +0530)
committerRishabh Dave <ridave@redhat.com>
Mon, 15 Sep 2025 06:25:19 +0000 (11:55 +0530)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit cf68e49597dc065d375666d0e4cb237cef223419)

Conflicts:
src/mon/FSCommands.cc
- The region was to be applied in region use "std::vector" to a declare
  a variable but main branch uses "vector" instead. Using either makes
  no difference since because vector has been imported in to the
  namespace.

src/mon/FSCommands.cc

index 3d394f6c2f18ee5fbe4e7f7fbe6ea8792b2997ee..b60ec08ebd53a67ce1cd9c1d44583d18182b7e27 100644 (file)
@@ -130,15 +130,15 @@ class FailHandler : public FileSystemCommandHandler
     };
     fsmap.modify_filesystem(fs->fscid, std::move(f));
 
-    std::vector<mds_gid_t> to_fail;
-    for (const auto& p : fs->mds_map.get_mds_info()) {
-      to_fail.push_back(p.first);
+    vector<mds_gid_t> mds_gids_to_fail;
+    for (const auto& p : fsp->get_mds_map().get_mds_info()) {
+      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();
     }