]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon,cephfs: fix indentation level of a code block 60400/head
authorRishabh Dave <ridave@redhat.com>
Fri, 18 Oct 2024 15:33:31 +0000 (21:03 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 18 Oct 2024 15:33:31 +0000 (21:03 +0530)
Like rest of the code blocks, this code block too should be preceded by
4 spaces. It is preceded by 2 spaces right now which is incorrect.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/mon/FSCommands.cc

index b935ace4affba04254a22fa8850bee090d49474a..6220a357ff01d3f0f7d382bce29a120247ed849f 100644 (file)
@@ -385,16 +385,16 @@ public:
       return -EINVAL;
     }
 
-  bool confirm = false;
-  cmd_getval(cmdmap, "yes_i_really_mean_it", confirm);
-  if (var == "max_mds" && !confirm && mon->mdsmon()->has_any_health_warning()) {
-    ss << "One or more file system health warnings are present. Modifying "
-       << "the file system setting variable \"max_mds\" may not help "
-       << "troubleshoot or recover from these warnings and may further "
-       << "destabilize the system. If you really wish to proceed, run "
-       << "again with --yes-i-really-mean-it";
-    return -EPERM;
-  }
+    bool confirm = false;
+    cmd_getval(cmdmap, "yes_i_really_mean_it", confirm);
+    if (var == "max_mds" && !confirm && mon->mdsmon()->has_any_health_warning()) {
+      ss << "One or more file system health warnings are present. Modifying "
+        << "the file system setting variable \"max_mds\" may not help "
+        << "troubleshoot or recover from these warnings and may further "
+        << "destabilize the system. If you really wish to proceed, run "
+        << "again with --yes-i-really-mean-it";
+      return -EPERM;
+    }
 
     return set_val(mon, fsmap, op, cmdmap, ss, fsp->get_fscid(), var, val);
   }