]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr: assert(false)->ceph_abort()
authorLi Wang <laurence.liwang@gmail.com>
Sat, 30 Sep 2017 02:34:41 +0000 (02:34 +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/mgr/PyModules.cc

index 0fdf21654ab455125f4cf82a5dc1ad7e26aa2952..29a02bbb399daed83a45839cb93f60dcd19297e5 100644 (file)
@@ -298,7 +298,7 @@ PyObject *PyModules::get_python(const std::string &what)
     } else if (what == "mon_status") {
       json = cluster_state.get_mon_status();
     } else {
-      assert(false);
+      ceph_abort();
     }
     f.dump_string("json", json.to_str());
     return f.get();