Commit d06efbdd authored by unknown's avatar unknown

Fix for bug #13367

parent 587f0b08
...@@ -230,7 +230,7 @@ buf_flush_buffered_writes(void) ...@@ -230,7 +230,7 @@ buf_flush_buffered_writes(void)
ulint len2; ulint len2;
ulint i; ulint i;
if (trx_doublewrite == NULL) { if (!srv_use_doublewrite_buf || trx_doublewrite == NULL) {
os_aio_simulated_wake_handler_threads(); os_aio_simulated_wake_handler_threads();
return; return;
...@@ -507,7 +507,7 @@ buf_flush_write_block_low( ...@@ -507,7 +507,7 @@ buf_flush_write_block_low(
fil_io(OS_FILE_WRITE | OS_AIO_SIMULATED_WAKE_LATER, fil_io(OS_FILE_WRITE | OS_AIO_SIMULATED_WAKE_LATER,
FALSE, block->space, block->offset, 0, UNIV_PAGE_SIZE, FALSE, block->space, block->offset, 0, UNIV_PAGE_SIZE,
(void*)block->frame, (void*)block); (void*)block->frame, (void*)block);
} else { } else if (srv_use_doublewrite_buf) {
buf_flush_post_to_doublewrite_buf(block); buf_flush_post_to_doublewrite_buf(block);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment