From dd289d2407609a88b1fcdf2be9e7c384cb8e19d0 Mon Sep 17 00:00:00 2001 From: simonjoylet Date: Wed, 23 Nov 2022 10:35:35 +0000 Subject: [PATCH] fix io_getevents failed in some os --- src/share/io/ob_io_struct.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/io/ob_io_struct.h b/src/share/io/ob_io_struct.h index a1ee2e54d..51f09c83a 100644 --- a/src/share/io/ob_io_struct.h +++ b/src/share/io/ob_io_struct.h @@ -312,7 +312,7 @@ private: private: 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_; ObIOEvents *io_events_; struct timespec polling_timeout_; -- GitLab