mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 02:30:06 +01:00
MDEV-27593 InnoDB handle AIO errors - more detailed assertion
Step 1 in handling InnoDB AIO assertions better is to get more detail of the cases of error. This doesn't resolve MDEV-27593, but increases the level of information in the assertion.
This commit is contained in:
parent
781948a19b
commit
fc456bc97e
1 changed files with 9 additions and 1 deletions
|
@ -3584,9 +3584,17 @@ extern void fil_aio_callback(const IORequest &request);
|
|||
|
||||
static void io_callback(tpool::aiocb* cb)
|
||||
{
|
||||
ut_a(cb->m_err == DB_SUCCESS);
|
||||
const IORequest request(*static_cast<const IORequest*>
|
||||
(static_cast<const void*>(cb->m_userdata)));
|
||||
if (cb->m_err != DB_SUCCESS)
|
||||
{
|
||||
ib::fatal() << "IO Error: " << cb->m_err << " during " <<
|
||||
(request.is_async() ? "async " : "sync ") <<
|
||||
(request.is_LRU() ? "lru " : "") <<
|
||||
(cb->m_opcode == tpool::aio_opcode::AIO_PREAD ? "read" : "write") <<
|
||||
" of " << cb->m_len << " bytes, for file " << cb->m_fh << ", returned " <<
|
||||
cb->m_ret_len;
|
||||
}
|
||||
/* Return cb back to cache*/
|
||||
if (cb->m_opcode == tpool::aio_opcode::AIO_PREAD)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue