diff options
Diffstat (limited to 'storage/innobase/buf/buf0flu.cc')
-rw-r--r-- | storage/innobase/buf/buf0flu.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/buf/buf0flu.cc b/storage/innobase/buf/buf0flu.cc index 00d96935461..90ead952d63 100644 --- a/storage/innobase/buf/buf0flu.cc +++ b/storage/innobase/buf/buf0flu.cc @@ -1771,12 +1771,10 @@ static bool log_checkpoint_low(lsn_t oldest_lsn, lsn_t end_lsn) mysql_mutex_assert_owner(&log_sys.mutex); ut_ad(oldest_lsn <= end_lsn); ut_ad(end_lsn == log_sys.get_lsn()); - ut_ad(!recv_no_log_write); ut_ad(oldest_lsn >= log_sys.last_checkpoint_lsn); const lsn_t age= oldest_lsn - log_sys.last_checkpoint_lsn; - if (age > SIZE_OF_FILE_CHECKPOINT + log_sys.framing_size()) /* Some log has been written since the previous checkpoint. */; else if (age > SIZE_OF_FILE_CHECKPOINT && @@ -1796,6 +1794,8 @@ static bool log_checkpoint_low(lsn_t oldest_lsn, lsn_t end_lsn) return true; } + ut_ad(!recv_no_log_write); + /* Repeat the FILE_MODIFY records after the checkpoint, in case some log records between the checkpoint and log_sys.lsn need them. Finally, write a FILE_CHECKPOINT record. Redo log apply expects to |