fix io_getevents failed in some os
This commit is contained in:

committed by
wangzelin.wzl

parent
68d8b9d4d3
commit
6ef29179eb
@ -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_;
|
||||||
|
Reference in New Issue
Block a user