]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon: assert(false)->ceph_abort()
authorLi Wang <laurence.liwang@gmail.com>
Sat, 30 Sep 2017 02:35:02 +0000 (02:35 +0000)
committerLi Wang <laurence.liwang@gmail.com>
Mon, 2 Oct 2017 14:43:17 +0000 (14:43 +0000)
Signed-off-by: Li Wang <laurence.liwang@gmail.com>
src/mon/OSDMonitor.cc
src/mon/PGMap.cc

index f583dffcce0951dd15926bbc124d3d318e847eb3..68fb94a0f484a3adf0c673cd3701d53b5cee6a94 100644 (file)
@@ -6271,7 +6271,7 @@ int OSDMonitor::prepare_command_pool_application(const string &prefix,
     ss << "removed application '" << app << "' key '" << key << "' on pool '"
        << pool_name << "'";
   } else {
-    assert(false);
+    ceph_abort();
   }
 
   p.last_change = pending_inc.epoch;
index f1023d383c951f2f3e55c3cb531406e47e0013c8..c00f22a470839393c8426d9a1e1bfa7e8e6640f7 100644 (file)
@@ -2270,7 +2270,7 @@ void PGMap::get_health_checks(
         sev = HEALTH_ERR;
         break;
       default:
-        assert(false);
+        ceph_abort();
     }
 
     if (i.first == DEGRADED) {