Skip to content

Commit

Permalink
MDEV-8523: InnoDB: Assertion failure in file buf0buf.cc line 5963 (Fa…
Browse files Browse the repository at this point in the history
…iling assertion: key_version == 0 || key_version >= bpage->key_version)
  • Loading branch information
Jan Lindström committed Oct 2, 2015
1 parent 6b36fb9 commit 5e7f100
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions storage/innobase/buf/buf0buf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6026,8 +6026,7 @@ buf_page_encrypt_before_write(
zip_size,
dst_frame);

unsigned key_version =
mach_read_from_4(dst_frame + FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION);
ulint key_version = mach_read_from_4(dst_frame + FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION);
ut_ad(key_version == 0 || key_version >= bpage->key_version);
bpage->key_version = key_version;
bpage->real_size = page_size;
Expand Down
3 changes: 1 addition & 2 deletions storage/xtradb/buf/buf0buf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6206,8 +6206,7 @@ buf_page_encrypt_before_write(
zip_size,
dst_frame);

unsigned key_version =
mach_read_from_4(dst_frame + FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION);
ulint key_version = mach_read_from_4(dst_frame + FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION);
ut_ad(key_version == 0 || key_version >= bpage->key_version);
bpage->key_version = key_version;
bpage->real_size = page_size;
Expand Down

0 comments on commit 5e7f100

Please sign in to comment.