mirror of
https://github.com/ceph/ceph
synced 2024-12-17 17:05:42 +00:00
msg/async: assert if compiled code doesn't support the configured ms_async_transport_type
for example, currently there is a crash when using the async stack (access of null pointer) in case the user configured rdma for a code that was not compiled with RDMA issue: 913397 Change-Id: I4e3d88006312a713b8d3aaefbdcd0596039270e1 Signed-off-by: Avner BenHanoch <avnerb@mellanox.com>
This commit is contained in:
parent
af21f0db91
commit
e3b744a19d
@ -68,6 +68,9 @@ std::shared_ptr<NetworkStack> NetworkStack::create(CephContext *c, const string
|
||||
return std::make_shared<DPDKStack>(c, t);
|
||||
#endif
|
||||
|
||||
lderr(c) << __func__ << " ms_async_transport_type " << t <<
|
||||
" is not supported! " << dendl;
|
||||
ceph_abort();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@ -83,6 +86,10 @@ Worker* NetworkStack::create_worker(CephContext *c, const string &type, unsigned
|
||||
else if (type == "dpdk")
|
||||
return new DPDKWorker(c, i);
|
||||
#endif
|
||||
|
||||
lderr(c) << __func__ << " ms_async_transport_type " << type <<
|
||||
" is not supported! " << dendl;
|
||||
ceph_abort();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user