summaryrefslogtreecommitdiff
path: root/innobase/buf
diff options
context:
space:
mode:
authorunknown <kaa@polly.local>2005-09-27 13:37:20 +0400
committerunknown <kaa@polly.local>2005-09-27 13:37:20 +0400
commit912317f3e794970571162894cefa11f855bf2d60 (patch)
treed3e4f9ee16c01f3b8ee6513745dc32a45978251b /innobase/buf
parentaeca681be42e07777e9f856deba2ab5ae8f1e24e (diff)
downloadmariadb-git-912317f3e794970571162894cefa11f855bf2d60.tar.gz
Fix for bug #13367, post-review changes
Diffstat (limited to 'innobase/buf')
-rw-r--r--innobase/buf/buf0flu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/innobase/buf/buf0flu.c b/innobase/buf/buf0flu.c
index bd14f14ea95..e39d1ae0a71 100644
--- a/innobase/buf/buf0flu.c
+++ b/innobase/buf/buf0flu.c
@@ -503,11 +503,11 @@ buf_flush_write_block_low(
#endif
buf_flush_init_for_writing(block->frame, block->newest_modification,
block->space, block->offset);
- if (!trx_doublewrite) {
+ if (!srv_use_doublewrite_buf || !trx_doublewrite) {
fil_io(OS_FILE_WRITE | OS_AIO_SIMULATED_WAKE_LATER,
FALSE, block->space, block->offset, 0, UNIV_PAGE_SIZE,
(void*)block->frame, (void*)block);
- } else if (srv_use_doublewrite_buf) {
+ } else {
buf_flush_post_to_doublewrite_buf(block);
}
}