diff options
author | Vlad Lesin <vlad_lesin@mail.ru> | 2019-04-08 18:25:43 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-04-08 21:38:32 +0300 |
commit | 05b84b2568ea62a3af69dc50ec346a22c0ac96c6 (patch) | |
tree | 17e82adce39860c4a62d1fbaf6a1b4edcc0910c5 /extra | |
parent | 9ba0865b875c8b11a3ca26c9ee17635961d18b23 (diff) | |
download | mariadb-git-05b84b2568ea62a3af69dc50ec346a22c0ac96c6.tar.gz |
MDEV-14192: Add debug assertions
Diffstat (limited to 'extra')
-rw-r--r-- | extra/mariabackup/xtrabackup.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extra/mariabackup/xtrabackup.cc b/extra/mariabackup/xtrabackup.cc index 6b9a466d443..e70295417b7 100644 --- a/extra/mariabackup/xtrabackup.cc +++ b/extra/mariabackup/xtrabackup.cc @@ -4129,7 +4129,7 @@ reread_log_header: } const byte* buf = log_sys.checkpoint_buf; - checkpoint_lsn_start = log_sys.log.lsn; + checkpoint_lsn_start = log_sys.log.get_lsn(); checkpoint_no_start = log_sys.next_checkpoint_no; log_header_read(max_cp_field); @@ -4181,7 +4181,7 @@ reread_log_header: stored correctly in the copy of the ib_logfile. The most significant bits, which identify the start offset of the log block in the file, we did choose freely, as LOG_FILE_HDR_SIZE. */ - ut_ad(!((log_sys.log.lsn ^ checkpoint_lsn_start) + ut_ad(!((log_sys.log.get_lsn() ^ checkpoint_lsn_start) & (OS_FILE_LOG_BLOCK_SIZE - 1))); log_block_set_checksum(log_hdr, log_block_calc_checksum_crc32(log_hdr)); |