From 1156d9d96ef11efe1522af5ca0ec4168573d32d8 Mon Sep 17 00:00:00 2001 From: Li Wang Date: Sat, 30 Sep 2017 02:35:02 +0000 Subject: [PATCH] mon: assert(false)->ceph_abort() Signed-off-by: Li Wang --- src/mon/OSDMonitor.cc | 2 +- src/mon/PGMap.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index f583dffcce0..68fb94a0f48 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 f1023d383c9..c00f22a4708 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) { -- 2.39.5