]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Thu, 6 Feb 2025 16:33:19 +0000 (22:03 +0530)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/mon/FSCommands.cc

index 8caab5011a30790fed4e0febc925b4693d261d7a..539c7315b4ccca8e8fab3a3e2315f3cbcaa45d9b 100644 (file)
@@ -122,15 +122,15 @@ class FailHandler : public FileSystemCommandHandler
     };
     fsmap.modify_filesystem(fsp->get_fscid(), std::move(f));
 
-    vector<mds_gid_t> to_fail;
+    vector<mds_gid_t> 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();
     }