summaryrefslogtreecommitdiff
path: root/tpool/tpool.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-12-03 08:44:49 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2019-12-03 11:05:18 +0200
commit57444a3b3086e96272cf10c3749c5ddb5f990492 (patch)
tree65e5616d80af04e1cc37d8d8d6db43142c3756e7 /tpool/tpool.h
parentcd92c6c83dd92cee2ccccd107988da032b2026f8 (diff)
downloadmariadb-git-57444a3b3086e96272cf10c3749c5ddb5f990492.tar.gz
MDEV-16264: Minor cleanup
aio_linux::m_max_io_count: Unused data member; remove. aiocb::m_ret_len: Declare as the more compatible type size_t. Unfortunately, ssize_t is not available on Microsoft Visual Studio.
Diffstat (limited to 'tpool/tpool.h')
-rw-r--r--tpool/tpool.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/tpool/tpool.h b/tpool/tpool.h
index ad63e25bdd7..8659e8adc74 100644
--- a/tpool/tpool.h
+++ b/tpool/tpool.h
@@ -110,7 +110,6 @@ enum class aio_opcode
AIO_PWRITE
};
const int MAX_AIO_USERDATA_LEN= 40;
-struct aiocb;
/** IO control block, includes parameters for the IO, and the callback*/
@@ -129,7 +128,7 @@ struct aiocb
callback_func m_callback;
task_group* m_group;
/* Returned length and error code*/
- int m_ret_len;
+ size_t m_ret_len;
int m_err;
void *m_internal;
task m_internal_task;