From: Li Wang Date: Sat, 30 Sep 2017 02:35:02 +0000 (+0000) Subject: mon: assert(false)->ceph_abort() X-Git-Tag: v13.0.1~675^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1156d9d96ef11efe1522af5ca0ec4168573d32d8;p=ceph.git mon: assert(false)->ceph_abort() Signed-off-by: Li Wang --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index f583dffcce09..68fb94a0f484 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -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; diff --git a/src/mon/PGMap.cc b/src/mon/PGMap.cc index f1023d383c95..c00f22a47083 100644 --- a/src/mon/PGMap.cc +++ b/src/mon/PGMap.cc @@ -2270,7 +2270,7 @@ void PGMap::get_health_checks( sev = HEALTH_ERR; break; default: - assert(false); + ceph_abort(); } if (i.first == DEGRADED) {