summaryrefslogtreecommitdiff
path: root/tpool
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-10-23 10:49:03 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-10-26 17:53:54 +0200
commit8cb01c51fbd3bfebfbcadea78a30a6f18df46598 (patch)
tree055a936636947f82d65ab6ba14625375855f08a5 /tpool
parent118e258aaac5da75a2ac4556201aaea3688fac67 (diff)
downloadmariadb-git-8cb01c51fbd3bfebfbcadea78a30a6f18df46598.tar.gz
MDEV-16264 fixup: Clean up asynchronous I/O
os_aio_userdata_t: Remove. It was basically duplicating IORequest. buf_page_write_complete(): Take only IORequest as a parameter. os_aio_func(), pfs_os_aio_func(): Replaced with os_aio() that has no redundant parameters. There is only one caller, so there is no point to pass __FILE__, __LINE__ as a parameter.
Diffstat (limited to 'tpool')
-rw-r--r--tpool/tpool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tpool/tpool.h b/tpool/tpool.h
index 239be53c27e..0d83af5bd74 100644
--- a/tpool/tpool.h
+++ b/tpool/tpool.h
@@ -114,7 +114,7 @@ enum class aio_opcode
AIO_PREAD,
AIO_PWRITE
};
-const int MAX_AIO_USERDATA_LEN= 40;
+constexpr size_t MAX_AIO_USERDATA_LEN= 3 * sizeof(void*);
/** IO control block, includes parameters for the IO, and the callback*/