]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async/rdma: remove assert from srq destroy in ~Infiniband 15749/head
authorDaniel Bar-On <danielbo@mellanox.com>
Mon, 8 May 2017 15:25:28 +0000 (15:25 +0000)
committerAdir Lev <adirl@mellanox.com>
Sun, 18 Jun 2017 13:26:24 +0000 (13:26 +0000)
issue:1040242

Even though ibv_destroy_srq does not return 0, all resources
are destroyed. No need to assert.

Change-Id: I96562130d22352390f9f7f9a3e0ddbe77a82d8f4
Signed-off-by: DanielBar-On <danielbo@mellanox.com>
src/msg/async/rdma/Infiniband.cc

index 2a31eccc4e5632d55878d967cdb9add7c3131ba3..0597b09eb56938acdf9611a343ed867547f5d1c6 100644 (file)
@@ -769,7 +769,7 @@ Infiniband::~Infiniband()
   if (dispatcher)
     dispatcher->polling_stop();
 
-  assert(ibv_destroy_srq(srq) == 0);
+  ibv_destroy_srq(srq);
   delete memory_manager;
   delete pd;
 }