summaryrefslogtreecommitdiff
path: root/tpool/aio_liburing.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tpool/aio_liburing.cc')
-rw-r--r--tpool/aio_liburing.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/tpool/aio_liburing.cc b/tpool/aio_liburing.cc
index a4a899d08d4..2a9c79f9020 100644
--- a/tpool/aio_liburing.cc
+++ b/tpool/aio_liburing.cc
@@ -1,4 +1,4 @@
-/* Copyright (C) 2021, MariaDB Corporation.
+/* Copyright (C) 2021, 2022, MariaDB Corporation.
This program is free software; you can redistribute itand /or modify
it under the terms of the GNU General Public License as published by
@@ -137,8 +137,8 @@ private:
io_uring_cqe *cqe;
if (int ret= io_uring_wait_cqe(&aio->uring_, &cqe))
{
- if (ret == -EINTR) // this may occur during shutdown
- break;
+ if (ret == -EINTR)
+ continue;
my_printf_error(ER_UNKNOWN_ERROR,
"io_uring_wait_cqe() returned %d\n",
ME_ERROR_LOG | ME_FATAL, ret);
@@ -147,7 +147,7 @@ private:
auto *iocb= static_cast<tpool::aiocb*>(io_uring_cqe_get_data(cqe));
if (!iocb)
- break;
+ break; // ~aio_uring() told us to terminate
int res= cqe->res;
if (res < 0)