Commit dd7989d2 authored by Vasil Dimov's avatar Vasil Dimov

(btr0cur.c:4559) Bug#55227 Fix compiler warnings in innodb with gcc 4.6

parent 530a8c6f
...@@ -4556,16 +4556,19 @@ btr_free_externally_stored_field( ...@@ -4556,16 +4556,19 @@ btr_free_externally_stored_field(
} }
for (;;) { for (;;) {
#ifdef UNIV_SYNC_DEBUG
buf_block_t* rec_block; buf_block_t* rec_block;
#endif /* UNIV_SYNC_DEBUG */
buf_block_t* ext_block; buf_block_t* ext_block;
mtr_start(&mtr); mtr_start(&mtr);
rec_block = buf_page_get(page_get_space_id( #ifdef UNIV_SYNC_DEBUG
page_align(field_ref)), rec_block =
#endif /* UNIV_SYNC_DEBUG */
buf_page_get(page_get_space_id(page_align(field_ref)),
rec_zip_size, rec_zip_size,
page_get_page_no( page_get_page_no(page_align(field_ref)),
page_align(field_ref)),
RW_X_LATCH, &mtr); RW_X_LATCH, &mtr);
buf_block_dbg_add_level(rec_block, SYNC_NO_ORDER_CHECK); buf_block_dbg_add_level(rec_block, SYNC_NO_ORDER_CHECK);
page_no = mach_read_from_4(field_ref + BTR_EXTERN_PAGE_NO); page_no = mach_read_from_4(field_ref + BTR_EXTERN_PAGE_NO);
......
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