]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: fix try/catch whitespace
authorSage Weil <sage@redhat.com>
Mon, 13 Aug 2018 19:43:05 +0000 (14:43 -0500)
committerSage Weil <sage@redhat.com>
Sat, 1 Sep 2018 21:38:58 +0000 (16:38 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/AuthMonitor.cc
src/mon/ConfigMonitor.cc
src/mon/LogMonitor.cc
src/mon/MDSMonitor.cc
src/mon/MgrMonitor.cc
src/mon/MonmapMonitor.cc
src/mon/OSDMonitor.cc

index 04f5f17ac4482f34bfe477ffee6a681a2159e585..fe714f07ae8a96c7d9fef93174e381b484244436 100644 (file)
@@ -413,8 +413,7 @@ bool AuthMonitor::preprocess_query(MonOpRequestRef op)
   case MSG_MON_COMMAND:
     try {
       return preprocess_command(op);
-    }
-    catch (const bad_cmd_get& e) {
+    } catch (const bad_cmd_get& e) {
       bufferlist bl;
       mon->reply_command(op, -EINVAL, e.what(), bl, get_last_committed());
       return true;
@@ -440,8 +439,7 @@ bool AuthMonitor::prepare_update(MonOpRequestRef op)
   case MSG_MON_COMMAND:
     try {
       return prepare_command(op);
-    }
-    catch (const bad_cmd_get& e) {
+    } catch (const bad_cmd_get& e) {
       bufferlist bl;
       mon->reply_command(op, -EINVAL, e.what(), bl, get_last_committed());
       return true;
index 246aa161775993c66184a0084d95dafbfc2aebfb..fe274bacf18ce8948e3882620ad215ec719a30c2 100644 (file)
@@ -111,8 +111,7 @@ bool ConfigMonitor::preprocess_query(MonOpRequestRef op)
   case MSG_MON_COMMAND:
     try {
       return preprocess_command(op);
-    }
-    catch (const bad_cmd_get& e) {
+    } catch (const bad_cmd_get& e) {
       bufferlist bl;
       mon->reply_command(op, -EINVAL, e.what(), bl, get_last_committed());
       return true;
@@ -376,8 +375,7 @@ bool ConfigMonitor::prepare_update(MonOpRequestRef op)
   case MSG_MON_COMMAND:
     try {
       return prepare_command(op);
-    }
-    catch (const bad_cmd_get& e) {
+    } catch (const bad_cmd_get& e) {
       bufferlist bl;
       mon->reply_command(op, -EINVAL, e.what(), bl, get_last_committed());
       return true;
index 31872b11de42da48c7d46a47994c889765f71077..f067ba42b971c2539cf8e50d3f19fba1868f7280 100644 (file)
@@ -260,8 +260,7 @@ bool LogMonitor::preprocess_query(MonOpRequestRef op)
   case MSG_MON_COMMAND:
     try {
       return preprocess_command(op);
-    }
-    catch (const bad_cmd_get& e) {
+    } catch (const bad_cmd_get& e) {
       bufferlist bl;
       mon->reply_command(op, -EINVAL, e.what(), bl, get_last_committed());
       return true;
@@ -285,8 +284,7 @@ bool LogMonitor::prepare_update(MonOpRequestRef op)
   case MSG_MON_COMMAND:
     try {
       return prepare_command(op);
-    }
-    catch (const bad_cmd_get& e) {
+    } catch (const bad_cmd_get& e) {
       bufferlist bl;
       mon->reply_command(op, -EINVAL, e.what(), bl, get_last_committed());
       return true;
index 1f467523d3cf02083f7d47bae118e03d48c367a7..e9317d474280ca8b483f936d0914783dd1961926 100644 (file)
@@ -288,8 +288,7 @@ bool MDSMonitor::preprocess_query(MonOpRequestRef op)
   case MSG_MON_COMMAND:
     try {
       return preprocess_command(op);
-    }
-    catch (const bad_cmd_get& e) {
+    } catch (const bad_cmd_get& e) {
       bufferlist bl;
       mon->reply_command(op, -EINVAL, e.what(), bl, get_last_committed());
       return true;
@@ -509,8 +508,7 @@ bool MDSMonitor::prepare_update(MonOpRequestRef op)
   case MSG_MON_COMMAND:
     try {
       return prepare_command(op);
-    }
-    catch (const bad_cmd_get& e) {
+    } catch (const bad_cmd_get& e) {
       bufferlist bl;
       mon->reply_command(op, -EINVAL, e.what(), bl, get_last_committed());
       return true;
index bccc7386e543b88c38b4585ba55d1123382271bf..50d74dbf10a3154857b0ebeed83a5f2e745f3ca4 100644 (file)
@@ -252,8 +252,7 @@ bool MgrMonitor::preprocess_query(MonOpRequestRef op)
     case MSG_MON_COMMAND:
       try {
        return preprocess_command(op);
-      }
-      catch (const bad_cmd_get& e) {
+      } catch (const bad_cmd_get& e) {
       bufferlist bl;
       mon->reply_command(op, -EINVAL, e.what(), bl, get_last_committed());
       return true;
@@ -276,8 +275,7 @@ bool MgrMonitor::prepare_update(MonOpRequestRef op)
     case MSG_MON_COMMAND:
       try {
        return prepare_command(op);
-      }
-      catch (const bad_cmd_get& e) {
+      } catch (const bad_cmd_get& e) {
        bufferlist bl;
        mon->reply_command(op, -EINVAL, e.what(), bl, get_last_committed());
        return true;
index 0e627399fef0502ab73a94928f90f4ef0f594351..d62c5b1eb63d7f7c4bc413a738fd2f67320afa2e 100644 (file)
@@ -414,8 +414,7 @@ bool MonmapMonitor::prepare_update(MonOpRequestRef op)
   case MSG_MON_COMMAND:
     try {
       return prepare_command(op);
-    }
-    catch (const bad_cmd_get& e) {
+    } catch (const bad_cmd_get& e) {
       bufferlist bl;
       mon->reply_command(op, -EINVAL, e.what(), bl, get_last_committed());
       return true;
index 072456a6aa13c4a4927c82981f3b8c03a46a9730..0ca72ee7eb051214ea9b0b281eef342f78bdaf9a 100644 (file)
@@ -2047,8 +2047,7 @@ bool OSDMonitor::preprocess_query(MonOpRequestRef op)
   case MSG_MON_COMMAND:
     try {
       return preprocess_command(op);
-    }
-    catch (const bad_cmd_get& e) {
+    } catch (const bad_cmd_get& e) {
       bufferlist bl;
       mon->reply_command(op, -EINVAL, e.what(), bl, get_last_committed());
       return true;
@@ -2114,8 +2113,7 @@ bool OSDMonitor::prepare_update(MonOpRequestRef op)
   case MSG_MON_COMMAND:
     try {
       return prepare_command(op);
-    }
-    catch (const bad_cmd_get& e) {
+    } catch (const bad_cmd_get& e) {
       bufferlist bl;
       mon->reply_command(op, -EINVAL, e.what(), bl, get_last_committed());
       return true;