Skip to content

Commit 32128ab

Browse files
committed
MDEV-37049 my_assume_aligned assertion in mariabackup
log_hdr_buf: Align to an 8-byte boundary, because we will actually assume at least 4-byte alignment in log_crypt_write_header(). This fixes a regression that had been introduced in commit 685d958 (MDEV-14425) where a 512-byte alignment requirement was relaxed too much.
1 parent 2d1e019 commit 32128ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

extra/mariabackup/xtrabackup.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2593,6 +2593,7 @@ static bool innodb_init_param()
25932593
return true;
25942594
}
25952595

2596+
alignas(8)
25962597
static byte log_hdr_buf[log_t::START_OFFSET + SIZE_OF_FILE_CHECKPOINT];
25972598

25982599
/** Initialize an InnoDB log file header in log_hdr_buf[] */

0 commit comments

Comments
 (0)