]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ECBackend.cc: fix MISSING_BREAK
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 9 Jun 2015 10:10:22 +0000 (12:10 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 17 Jul 2015 08:50:07 +0000 (10:50 +0200)
Fix for:
CID 1297854 (#1 of 1): Missing break in switch (MISSING_BREAK)
 unterminated_case: The case for value ECBackend::RecoveryOp::COMPLETE
 is not terminated by a 'break' statement.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/osd/ECBackend.cc

index f51a3d2ca0e792d1dae93b9459feff677d635182..a64c0f2a079fe8c28c0a64adeecbb1223cf09f11 100644 (file)
@@ -594,11 +594,11 @@ void ECBackend::continue_recovery_op(
       }
       return;
     }
-    case RecoveryOp::COMPLETE: {
-      assert(0); // should never be called once complete
-    };
-    default:
+    // should never be called once complete
+    case RecoveryOp::COMPLETE:
+    default: {
       assert(0);
+    };
     }
   }
 }