fix io_getevents failed in some os

This commit is contained in:
simonjoylet
2022-11-23 10:35:35 +00:00
committed by wangzelin.wzl
parent 68d8b9d4d3
commit 6ef29179eb

View File

@ -315,7 +315,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_;