]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon,cephfs: fix indentation level for a code block
authorRishabh Dave <ridave@redhat.com>
Wed, 29 Jan 2025 12:33:06 +0000 (18:03 +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 7f5553ce434e0525b775273c0b363398a91c32a4)

src/mon/FSCommands.cc

index 419fcc67d8a6c9aff8c150102bb0b82e36cd5364..3d394f6c2f18ee5fbe4e7f7fbe6ea8792b2997ee 100644 (file)
@@ -116,14 +116,14 @@ class FailHandler : public FileSystemCommandHandler
 
     auto fs = fsmap.get_filesystem(fs_name);
 
-  bool confirm = false;
-  cmd_getval(cmdmap, "yes_i_really_mean_it", confirm);
-  if (!confirm &&
-      mon->mdsmon()->has_health_warnings({
-       MDS_HEALTH_TRIM, MDS_HEALTH_CACHE_OVERSIZED})) {
-    ss << errmsg_for_unhealthy_mds;
-    return -EPERM;
-  }
+    bool confirm = false;
+    cmd_getval(cmdmap, "yes_i_really_mean_it", confirm);
+    if (!confirm &&
+       mon->mdsmon()->has_health_warnings({
+         MDS_HEALTH_TRIM, MDS_HEALTH_CACHE_OVERSIZED})) {
+      ss << errmsg_for_unhealthy_mds;
+      return -EPERM;
+    }
 
     auto f = [](auto&& fs) {
       fs->get_mds_map().set_flag(CEPH_MDSMAP_NOT_JOINABLE);