mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
MDEV-27322 Test innodb.doublewrite crashes when using innodb_flush_method=O_DIRECT
- InnoDB fails to write the page0 while trying to attempt recover the page0 from doublewrite buffer and incorrect size is being passed to the os_file_write(). Fix is that InnoDB should proper close the parenthesis for function os_file_write() in deferred_dblwr() and InnoDB should free the newly created tablespace in case of error in deferred_dblwr().
This commit is contained in:
parent
32692140e1
commit
8e5f09a6ed
1 changed files with 6 additions and 3 deletions
|
|
@ -836,13 +836,16 @@ processed:
|
|||
space->free_len= flst_get_len(FSP_HEADER_OFFSET + FSP_FREE + page);
|
||||
fil_node_t *node= UT_LIST_GET_FIRST(space->chain);
|
||||
if (!space->acquire())
|
||||
{
|
||||
free_space:
|
||||
fil_space_free(it->first, false);
|
||||
goto next_item;
|
||||
}
|
||||
if (os_file_write(IORequestWrite, node->name, node->handle,
|
||||
page, 0, fil_space_t::physical_size(flags) !=
|
||||
DB_SUCCESS))
|
||||
page, 0, fil_space_t::physical_size(flags)) != DB_SUCCESS)
|
||||
{
|
||||
space->release();
|
||||
goto next_item;
|
||||
goto free_space;
|
||||
}
|
||||
space->release();
|
||||
it->second.space= space;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue