diff options
author | Jan Lindström <jplindst@mariadb.org> | 2014-01-09 12:33:29 +0200 |
---|---|---|
committer | Jan Lindström <jplindst@mariadb.org> | 2014-01-09 12:33:29 +0200 |
commit | 2b5a0a22802a0069f318f7d23a1071a703930c90 (patch) | |
tree | 39e627ce380f05602b9bc8a711a043113a2fa352 /storage/innobase/buf/buf0dblwr.cc | |
parent | e80f2468b468540c27e9b7174769262297bffc13 (diff) | |
download | mariadb-git-2b5a0a22802a0069f318f7d23a1071a703930c90.tar.gz |
Feature: In first write if we trim we set write_size to actual bytes
written and rest of the page is trimmed. In following writes
there is no need to trim again if write_size only increases
because rest of the page is already trimmed. If actual write
size decreases we need to trim again. Need to research if this
can happen frequently enough to make any effect.
Diffstat (limited to 'storage/innobase/buf/buf0dblwr.cc')
-rw-r--r-- | storage/innobase/buf/buf0dblwr.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/buf/buf0dblwr.cc b/storage/innobase/buf/buf0dblwr.cc index 933b56eaf88..2ae67d8a41e 100644 --- a/storage/innobase/buf/buf0dblwr.cc +++ b/storage/innobase/buf/buf0dblwr.cc @@ -728,7 +728,7 @@ buf_dblwr_write_block_to_datafile( fil_io(OS_FILE_WRITE | OS_AIO_SIMULATED_WAKE_LATER, FALSE, buf_block_get_space(block), 0, buf_block_get_page_no(block), 0, UNIV_PAGE_SIZE, - (void*) block->frame, (void*) block, 0); + (void*) block->frame, (void*) block, (ulint *)&bpage->write_size); } /********************************************************************//** |