summaryrefslogtreecommitdiff
path: root/storage/innobase/buf/buf0dblwr.cc
diff options
context:
space:
mode:
authorJan Lindström <jplindst@mariadb.org>2014-01-09 12:33:29 +0200
committerJan Lindström <jplindst@mariadb.org>2014-01-09 12:33:29 +0200
commit2b5a0a22802a0069f318f7d23a1071a703930c90 (patch)
tree39e627ce380f05602b9bc8a711a043113a2fa352 /storage/innobase/buf/buf0dblwr.cc
parente80f2468b468540c27e9b7174769262297bffc13 (diff)
downloadmariadb-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.cc2
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);
}
/********************************************************************//**