Skip to content

Commit

Permalink
MDEV-21893: Assertion failure on upgrade with innodb_encrypt_log
Browse files Browse the repository at this point in the history
recv_log_recover_10_4(): Add a missing bit pattern negation that
was forgotten when commit f8a9f90
(MDEV-12353) removed the support for crash-upgrading.
  • Loading branch information
dr-m committed Mar 9, 2020
1 parent adb4117 commit 276e042
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions storage/innobase/log/log0recv.cc
Expand Up @@ -1503,8 +1503,7 @@ static dberr_t recv_log_recover_10_4()
}

if (log_sys.log.is_encrypted()
&& !log_crypt(buf, lsn & (OS_FILE_LOG_BLOCK_SIZE - 1),
OS_FILE_LOG_BLOCK_SIZE, LOG_DECRYPT)) {
&& !log_crypt(buf, lsn & ~511, 512, LOG_DECRYPT)) {
return DB_ERROR;
}

Expand Down

0 comments on commit 276e042

Please sign in to comment.