diff options
author | unknown <heikki@donna.mysql.fi> | 2001-04-26 16:36:59 +0300 |
---|---|---|
committer | unknown <heikki@donna.mysql.fi> | 2001-04-26 16:36:59 +0300 |
commit | 26f9b9af380f411f4d5f6a23a228e0ab32e1bd92 (patch) | |
tree | 353ca7848bb2600d6acfe371191ca0df8fbf2d87 /innobase/buf | |
parent | d3eb9d52b86d8963366496558c97b1f81e9a2deb (diff) | |
download | mariadb-git-26f9b9af380f411f4d5f6a23a228e0ab32e1bd92.tar.gz |
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
innobase/buf/buf0rea.c:
Fixed a recovery hang associated with ibuf bitmap pages
innobase/os/os0file.c:
Always do fsync after a file write to reduce possibility of a partially written page in an OS crash
Diffstat (limited to 'innobase/buf')
-rw-r--r-- | innobase/buf/buf0rea.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/innobase/buf/buf0rea.c b/innobase/buf/buf0rea.c index 13e9ed0476b..644dd226a0e 100644 --- a/innobase/buf/buf0rea.c +++ b/innobase/buf/buf0rea.c @@ -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; } |