提交 dd289d24 编写于 作者: S simonjoylet 提交者: wangzelin.wzl

fix io_getevents failed in some os

上级 6af7f9ae
...@@ -312,7 +312,7 @@ private: ...@@ -312,7 +312,7 @@ private:
private: private:
static const int32_t MAX_AIO_EVENT_CNT = 512; static const int32_t MAX_AIO_EVENT_CNT = 512;
static const int64_t AIO_POLLING_TIMEOUT_NS = 1000L * 1000L * 1000L; //1s static const int64_t AIO_POLLING_TIMEOUT_NS = 1000L * 1000L * 1000L - 1L; // almost 1s, for timespec_valid check
ObIOContext *io_context_; ObIOContext *io_context_;
ObIOEvents *io_events_; ObIOEvents *io_events_;
struct timespec polling_timeout_; struct timespec polling_timeout_;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册