Skip to content

Commit

Permalink
MDEV-26138 innodb_flush_log_at_trx_commit=3 doesn't flush
Browse files Browse the repository at this point in the history
trx_flush_log_if_needed_low(): Do flush for both
innodb_flush_log_at_trx_commit=1 and
innodb_flush_log_at_trx_commit=3.

This is the 10.6 version of
10.2 commit 5f8651a
which fixed a regression that had been introduced
in 2e814d4
(breaking 288eeb3).
  • Loading branch information
dr-m committed Jul 23, 2021
1 parent c35ac54 commit 42b9daa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/innobase/trx/trx0trx.cc
Expand Up @@ -1135,8 +1135,8 @@ static void trx_flush_log_if_needed_low(lsn_t lsn, trx_state_t trx_state)
if (log_sys.get_flushed_lsn() > lsn)
return;

bool flush= srv_file_flush_method != SRV_NOSYNC &&
srv_flush_log_at_trx_commit == 1;
const bool flush= srv_file_flush_method != SRV_NOSYNC &&
(srv_flush_log_at_trx_commit & 1);

if (trx_state == TRX_STATE_PREPARED)
{
Expand Down

0 comments on commit 42b9daa

Please sign in to comment.