Skip to content

Commit

Permalink
Cleanup: deduplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed May 31, 2021
1 parent 5bd5172 commit 601eb41
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions storage/innobase/buf/buf0flu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2361,14 +2361,8 @@ void buf_flush_sync()
{
const ulint n_flushed= buf_flush_lists(srv_max_io_capacity, LSN_MAX);
buf_flush_wait_batch_end_acquiring_mutex(false);
if (!n_flushed)
{
mysql_mutex_lock(&buf_pool.flush_list_mutex);
const auto len= UT_LIST_GET_LEN(buf_pool.flush_list);
mysql_mutex_unlock(&buf_pool.flush_list_mutex);
if (!len)
return;
}
if (!n_flushed && !buf_flush_list_length())
return;
}
}

Expand Down

0 comments on commit 601eb41

Please sign in to comment.