From: Li Wang Date: Tue, 6 Dec 2016 14:52:22 +0000 (+0000) Subject: msg/async/rdma/Infiniband.h: assert(0) -> ceph_abort() X-Git-Tag: v11.1.0~51^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0e387afb26078cfcbd986a4b7cc54b93d979abc8;p=ceph.git msg/async/rdma/Infiniband.h: assert(0) -> ceph_abort() Signed-off-by: Li Wang --- diff --git a/src/msg/async/rdma/Infiniband.h b/src/msg/async/rdma/Infiniband.h index 364085388602..932af8ec6ed9 100644 --- a/src/msg/async/rdma/Infiniband.h +++ b/src/msg/async/rdma/Infiniband.h @@ -58,14 +58,14 @@ class Port { int r = ibv_query_port(ctxt, port_num, port_attr); if (r == -1) { lderr(cct) << __func__ << " query port failed " << cpp_strerror(errno) << dendl; - assert(0); + ceph_abort(); } lid = port_attr->lid; r = ibv_query_gid(ctxt, port_num, 0, &gid); if (r) { lderr(cct) << __func__ << " query gid failed " << cpp_strerror(errno) << dendl; - assert(0); + ceph_abort(); } } @@ -107,7 +107,7 @@ class DeviceList { DeviceList(CephContext *cct): device_list(ibv_get_device_list(&num)) { if (device_list == NULL || num == 0) { lderr(cct) << __func__ << " failed to get rdma device list. " << cpp_strerror(errno) << dendl; - assert(0); + ceph_abort(); } devices = new Device*[num]; @@ -144,7 +144,7 @@ class Infiniband { { if (pd == NULL) { lderr(cct) << __func__ << " failed to allocate infiniband protection domain: " << cpp_strerror(errno) << dendl; - assert(0); + ceph_abort(); } } ~ProtectionDomain() {