mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
(btr0btr.c:1900) Bug#55227 Fix compiler warnings in innodb with gcc 4.6
This commit is contained in:
parent
c37573590d
commit
ab8cec7774
1 changed files with 4 additions and 3 deletions
|
@ -1897,7 +1897,6 @@ btr_page_split_and_insert(
|
|||
buf_block_t* left_block;
|
||||
buf_block_t* right_block;
|
||||
buf_block_t* insert_block;
|
||||
page_t* insert_page;
|
||||
page_cur_t* page_cursor;
|
||||
rec_t* first_rec;
|
||||
byte* buf = 0; /* remove warning */
|
||||
|
@ -2155,8 +2154,6 @@ insert_empty:
|
|||
insert_block = right_block;
|
||||
}
|
||||
|
||||
insert_page = buf_block_get_frame(insert_block);
|
||||
|
||||
/* 7. Reposition the cursor for insert and try insertion */
|
||||
page_cursor = btr_cur_get_page_cur(cursor);
|
||||
|
||||
|
@ -2168,8 +2165,12 @@ insert_empty:
|
|||
|
||||
#ifdef UNIV_ZIP_DEBUG
|
||||
{
|
||||
page_t* insert_page
|
||||
= buf_block_get_frame(insert_block);
|
||||
|
||||
page_zip_des_t* insert_page_zip
|
||||
= buf_block_get_page_zip(insert_block);
|
||||
|
||||
ut_a(!insert_page_zip
|
||||
|| page_zip_validate(insert_page_zip, insert_page));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue