diff options
author | unknown <kaa@polly.local> | 2005-09-27 13:37:20 +0400 |
---|---|---|
committer | unknown <kaa@polly.local> | 2005-09-27 13:37:20 +0400 |
commit | 912317f3e794970571162894cefa11f855bf2d60 (patch) | |
tree | d3e4f9ee16c01f3b8ee6513745dc32a45978251b /innobase | |
parent | aeca681be42e07777e9f856deba2ab5ae8f1e24e (diff) | |
download | mariadb-git-912317f3e794970571162894cefa11f855bf2d60.tar.gz |
Fix for bug #13367, post-review changes
Diffstat (limited to 'innobase')
-rw-r--r-- | innobase/buf/buf0flu.c | 4 | ||||
-rw-r--r-- | innobase/srv/srv0start.c | 2 | ||||
-rw-r--r-- | innobase/trx/trx0sys.c | 19 |
3 files changed, 3 insertions, 22 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); } } diff --git a/innobase/srv/srv0start.c b/innobase/srv/srv0start.c index 325b0a109cf..e5151ebf631 100644 --- a/innobase/srv/srv0start.c +++ b/innobase/srv/srv0start.c @@ -1540,7 +1540,7 @@ NetWare. */ #endif sync_order_checks_on = TRUE; - if (srv_use_doublewrite_buf && trx_doublewrite == NULL) { + if (trx_doublewrite == NULL) { /* Create the doublewrite buffer to a new tablespace */ trx_sys_create_doublewrite_buf(); diff --git a/innobase/trx/trx0sys.c b/innobase/trx/trx0sys.c index bf48c30e942..23f1dc40d00 100644 --- a/innobase/trx/trx0sys.c +++ b/innobase/trx/trx0sys.c @@ -126,22 +126,6 @@ trx_doublewrite_init( } /******************************************************************** -Frees the doublewrite buffer. */ -static -void -trx_doublewrite_free(void) -/*======================*/ -{ - mutex_free(&(trx_doublewrite->mutex)); - - mem_free(trx_doublewrite->buf_block_arr); - ut_free(trx_doublewrite->write_buf_unaligned); - - mem_free(trx_doublewrite); - trx_doublewrite = NULL; -} - -/******************************************************************** Marks the trx sys header when we have successfully upgraded to the >= 4.1.x multiple tablespace format. */ @@ -529,9 +513,6 @@ trx_sys_doublewrite_init_or_restore_pages( fil_flush_file_spaces(FIL_TABLESPACE); - if (!srv_use_doublewrite_buf) - trx_doublewrite_free(); - leave_func: ut_free(unaligned_read_buf); } |