提交 fa9e9e57 编写于 作者: P proller 提交者: proller

[PATCH] Fixup for "AIOcontextPool: Found io_event with unknown id 0'' error...

[PATCH] Fixup for "AIOcontextPool: Found io_event with unknown id 0'' error #4434 from urgordeadbeef
上级 15b03f6e
......@@ -84,7 +84,11 @@ void AIOContextPool::fulfillPromises(const io_event events[], const int num_even
for (const auto & event : boost::make_iterator_range(events, events + num_events))
{
/// get id from event
#if defined(__FreeBSD__)
const auto completed_id = (reinterpret_cast<struct iocb *>(event.udata))->aio_data;
#else
const auto completed_id = event.data;
#endif
/// set value via promise and release it
const auto it = promises.find(completed_id);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册