Commit 104979bf authored by marko's avatar marko

branches/innodb+: Minor cleanup.

ibuf_set_entry_counter(): Turn a ut_ad() assertion into ut_a().

ibuf_set_del_mark(), ibuf_delete(): Add const qualifiers to read-only
parameters.
parent e1580c30
...@@ -2829,7 +2829,7 @@ ibuf_set_entry_counter( ...@@ -2829,7 +2829,7 @@ ibuf_set_entry_counter(
counter = 0; counter = 0;
} else { } else {
rec_t* rec; rec_t* rec;
page_t* page; const page_t* page;
buf_block_t* block; buf_block_t* block;
page_t* prev_page; page_t* prev_page;
ulint prev_page_no; ulint prev_page_no;
...@@ -2839,8 +2839,7 @@ ibuf_set_entry_counter( ...@@ -2839,8 +2839,7 @@ ibuf_set_entry_counter(
page = btr_pcur_get_page(pcur); page = btr_pcur_get_page(pcur);
prev_page_no = btr_page_get_prev(page, mtr); prev_page_no = btr_page_get_prev(page, mtr);
ut_ad(prev_page_no != FIL_NULL); ut_a(prev_page_no != FIL_NULL);
block = buf_page_get( block = buf_page_get(
IBUF_SPACE_ID, 0, prev_page_no, IBUF_SPACE_ID, 0, prev_page_no,
...@@ -3374,9 +3373,9 @@ static ...@@ -3374,9 +3373,9 @@ static
void void
ibuf_set_del_mark( ibuf_set_del_mark(
/*==============*/ /*==============*/
dtuple_t* entry, /* in: entry */ const dtuple_t* entry, /* in: entry */
buf_block_t* block, /* in: block */ buf_block_t* block, /* in/out: block */
dict_index_t* index, /* in: record descriptor */ const dict_index_t* index, /* in: record descriptor */
mtr_t* mtr) /* in: mtr */ mtr_t* mtr) /* in: mtr */
{ {
page_cur_t page_cur; page_cur_t page_cur;
...@@ -3393,8 +3392,7 @@ ibuf_set_del_mark( ...@@ -3393,8 +3392,7 @@ ibuf_set_del_mark(
page_zip_des_t* page_zip; page_zip_des_t* page_zip;
rec = page_cur_get_rec(&page_cur); rec = page_cur_get_rec(&page_cur);
block = page_cur_get_block(&page_cur); page_zip = page_cur_get_page_zip(&page_cur);
page_zip = buf_block_get_page_zip(block);
btr_cur_set_deleted_flag_for_ibuf(rec, page_zip, TRUE, mtr); btr_cur_set_deleted_flag_for_ibuf(rec, page_zip, TRUE, mtr);
} else { } else {
...@@ -3408,8 +3406,8 @@ static ...@@ -3408,8 +3406,8 @@ static
void void
ibuf_delete( ibuf_delete(
/*========*/ /*========*/
dtuple_t* entry, /* in: entry */ const dtuple_t* entry, /* in: entry */
buf_block_t* block, /* in: block */ buf_block_t* block, /* in/out: block */
dict_index_t* index, /* in: record descriptor */ dict_index_t* index, /* in: record descriptor */
mtr_t* mtr) /* in: mtr */ mtr_t* mtr) /* in: 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