]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async/rdma/Infiniband.h: assert(0) -> ceph_abort()
authorLi Wang <li.wang@kylin-cloud.com>
Tue, 6 Dec 2016 14:52:22 +0000 (14:52 +0000)
committerLi Wang <li.wang@kylin-cloud.com>
Tue, 6 Dec 2016 14:52:22 +0000 (14:52 +0000)
Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
src/msg/async/rdma/Infiniband.h

index 3640853886024b366f63998c2e51857d339bc244..932af8ec6ed9c5c9bf972a3a12c23a5ebb18ccde 100644 (file)
@@ -58,14 +58,14 @@ class Port {
     int r = ibv_query_port(ctxt, port_num, port_attr);\r
     if (r == -1) {\r
       lderr(cct) << __func__  << " query port failed  " << cpp_strerror(errno) << dendl;\r
-      assert(0);\r
+      ceph_abort();\r
     }\r
 \r
     lid = port_attr->lid;\r
     r = ibv_query_gid(ctxt, port_num, 0, &gid);\r
     if (r) {\r
       lderr(cct) << __func__  << " query gid failed  " << cpp_strerror(errno) << dendl;\r
-      assert(0);\r
+      ceph_abort();\r
     }\r
   }\r
 \r
@@ -107,7 +107,7 @@ class DeviceList {
   DeviceList(CephContext *cct): device_list(ibv_get_device_list(&num)) {\r
     if (device_list == NULL || num == 0) {\r
       lderr(cct) << __func__ << " failed to get rdma device list.  " << cpp_strerror(errno) << dendl;\r
-      assert(0);\r
+      ceph_abort();\r
     }\r
     devices = new Device*[num];\r
 \r
@@ -144,7 +144,7 @@ class Infiniband {
     {\r
       if (pd == NULL) {\r
         lderr(cct) << __func__ << " failed to allocate infiniband protection domain: " << cpp_strerror(errno) << dendl;\r
-        assert(0);\r
+        ceph_abort();\r
       }\r
     }\r
     ~ProtectionDomain() {\r