mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
MDEV-41310: Assertion current_lsn < archive_header_was_reset failed
log_t::write_checkpoint(): Correct an off-by-one error in the assertion expression. We may reach the very end of the current log file. A subsequent log_t::write_buf() will invoke archive_new_write(), which will create a new log file if needed. Tested by: Saahil Alam
This commit is contained in:
@@ -1941,7 +1941,7 @@ inline lsn_t log_t::write_checkpoint(lsn_t checkpoint, lsn_t end_lsn) noexcept
|
||||
set_capacity();
|
||||
archive_header_was_reset= first_lsn + capacity();
|
||||
ut_ad(current_lsn >= first_lsn);
|
||||
ut_ad(current_lsn < archive_header_was_reset);
|
||||
ut_ad(current_lsn <= archive_header_was_reset);
|
||||
next_checkpoint_no= uint16_t(4 * is_encrypted());
|
||||
|
||||
if (is_encrypted())
|
||||
|
||||
Reference in New Issue
Block a user