Skip to content

Commit 1f4f135

Browse files
author
Bin Su
committed
Follow-up patch for Bug#20582189 INNODB.DOUBLEWRITE FAILS DUE TO DATABASE
CORRUPTION This patch should make sure that when setting innodb_buf_flush_list_now = 1, server will return until dirty pages are flushed out. Approved by Jimmy over IM.
1 parent 0a032b5 commit 1f4f135

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

storage/innobase/handler/ha_innodb.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18010,8 +18010,7 @@ buf_flush_list_now_set(
1801018010
check function */
1801118011
{
1801218012
if (*(my_bool*) save) {
18013-
buf_flush_lists(ULINT_MAX, LSN_MAX, NULL);
18014-
buf_flush_wait_batch_end(NULL, BUF_FLUSH_LIST);
18013+
buf_flush_sync_all_buf_pools();
1801518014
}
1801618015
}
1801718016

0 commit comments

Comments
 (0)