mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
os0file.c Always do fsync after a file write to reduce possibility of a partially written page in an OS crash
buf0rea.c Fixed a recovery hang associated with ibuf bitmap pages
This commit is contained in:
parent
e5c36cbadc
commit
0f9a30ab86
2 changed files with 33 additions and 5 deletions
|
|
@ -73,11 +73,13 @@ buf_read_page_low(
|
|||
sync = TRUE;
|
||||
}
|
||||
#endif
|
||||
if (trx_sys_hdr_page(space, offset)) {
|
||||
if (ibuf_bitmap_page(offset) || trx_sys_hdr_page(space, offset)) {
|
||||
|
||||
/* Trx sys header is so low in the latching order that we play
|
||||
safe and do not leave the i/o-completion to an asynchronous
|
||||
i/o-thread: */
|
||||
i/o-thread. Ibuf bitmap pages must always be read with
|
||||
syncronous i/o, to make sure they do not get involved in
|
||||
thread deadlocks. */
|
||||
|
||||
sync = TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue