Commit 5e45ac48 authored by marko's avatar marko

branches/zip: ibuf_merge_or_delete_for_page(): Replace all

calls buf_block_get_frame(block) with block->frame in order
to avoid debug assertions about block->buf_fix_count == 0.
parent 42bd3289
...@@ -3233,7 +3233,7 @@ ibuf_merge_or_delete_for_page( ...@@ -3233,7 +3233,7 @@ ibuf_merge_or_delete_for_page(
rw_lock_x_lock_move_ownership(&(block->lock)); rw_lock_x_lock_move_ownership(&(block->lock));
page_zip = buf_block_get_page_zip(block); page_zip = buf_block_get_page_zip(block);
if (UNIV_UNLIKELY(fil_page_get_type(buf_block_get_frame(block)) if (UNIV_UNLIKELY(fil_page_get_type(block->frame)
!= FIL_PAGE_INDEX)) { != FIL_PAGE_INDEX)) {
corruption_noticed = TRUE; corruption_noticed = TRUE;
...@@ -3253,7 +3253,7 @@ ibuf_merge_or_delete_for_page( ...@@ -3253,7 +3253,7 @@ ibuf_merge_or_delete_for_page(
fputs("\nInnoDB: Dump of the page:\n", stderr); fputs("\nInnoDB: Dump of the page:\n", stderr);
buf_page_print(buf_block_get_frame(block), 0); buf_page_print(block->frame, 0);
fprintf(stderr, fprintf(stderr,
"InnoDB: Error: corruption in the tablespace." "InnoDB: Error: corruption in the tablespace."
...@@ -3272,7 +3272,7 @@ ibuf_merge_or_delete_for_page( ...@@ -3272,7 +3272,7 @@ ibuf_merge_or_delete_for_page(
" to http://bugs.mysql.com\n\n", " to http://bugs.mysql.com\n\n",
(ulong) page_no, (ulong) page_no,
(ulong) (ulong)
fil_page_get_type(buf_block_get_frame(block))); fil_page_get_type(block->frame));
} }
} }
...@@ -3314,8 +3314,7 @@ ibuf_merge_or_delete_for_page( ...@@ -3314,8 +3314,7 @@ ibuf_merge_or_delete_for_page(
|| ibuf_rec_get_space(ibuf_rec) != space) { || ibuf_rec_get_space(ibuf_rec) != space) {
if (block) { if (block) {
page_header_reset_last_insert( page_header_reset_last_insert(
buf_block_get_frame(block), block->frame, page_zip, &mtr);
page_zip, &mtr);
} }
goto reset_bit; goto reset_bit;
} }
...@@ -3381,7 +3380,7 @@ ibuf_merge_or_delete_for_page( ...@@ -3381,7 +3380,7 @@ ibuf_merge_or_delete_for_page(
ibuf_bitmap_page_set_bits(bitmap_page, page_no, zip_size, ibuf_bitmap_page_set_bits(bitmap_page, page_no, zip_size,
IBUF_BITMAP_BUFFERED, FALSE, &mtr); IBUF_BITMAP_BUFFERED, FALSE, &mtr);
if (block) { if (block) {
page_t* page = buf_block_get_frame(block); page_t* page = block->frame;
ulint old_bits = ibuf_bitmap_page_get_bits( ulint old_bits = ibuf_bitmap_page_get_bits(
bitmap_page, page_no, zip_size, bitmap_page, page_no, zip_size,
IBUF_BITMAP_FREE, &mtr); IBUF_BITMAP_FREE, &mtr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment