mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
branches/zip: ibuf_merge_or_delete_for_page(): Remove the redundant
checks for ibuf_fixed_addr_page() || fsp_descr_page(). The one at the beginning of the function is enough.
This commit is contained in:
parent
7c16a58d4b
commit
d182215a4f
1 changed files with 5 additions and 24 deletions
|
@ -3214,31 +3214,17 @@ ibuf_merge_or_delete_for_page(
|
|||
ut_ad(!block || buf_block_get_space(block) == space);
|
||||
ut_ad(!block || buf_block_get_page_no(block) == page_no);
|
||||
ut_ad(!block || buf_block_get_zip_size(block) == zip_size);
|
||||
ut_a(ut_is_2pow(zip_size));
|
||||
|
||||
if (srv_force_recovery >= SRV_FORCE_NO_IBUF_MERGE) {
|
||||
if (srv_force_recovery >= SRV_FORCE_NO_IBUF_MERGE
|
||||
|| trx_sys_hdr_page(space, page_no)
|
||||
|| ibuf_fixed_addr_page(space, zip_size, page_no)
|
||||
|| fsp_descr_page(zip_size, page_no)) {
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (trx_sys_hdr_page(space, page_no)) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* The following assumes that the uncompressed page size
|
||||
is a power-of-2 multiple of zip_size. */
|
||||
if (ibuf_fixed_addr_page(space, 0, page_no)
|
||||
|| fsp_descr_page(0, page_no)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (UNIV_LIKELY(update_ibuf_bitmap)) {
|
||||
ut_a(ut_is_2pow(zip_size));
|
||||
|
||||
if (ibuf_fixed_addr_page(space, zip_size, page_no)
|
||||
|| fsp_descr_page(zip_size, page_no)) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* If the following returns FALSE, we get the counter
|
||||
incremented, and must decrement it when we leave this
|
||||
function. When the counter is > 0, that prevents tablespace
|
||||
|
@ -3272,11 +3258,6 @@ ibuf_merge_or_delete_for_page(
|
|||
}
|
||||
mtr_commit(&mtr);
|
||||
}
|
||||
} else if (block) {
|
||||
if (ibuf_fixed_addr_page(space, zip_size, page_no)
|
||||
|| fsp_descr_page(zip_size, page_no)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* Currently the insert buffer of space 0 takes care of inserts to all
|
||||
|
|
Loading…
Add table
Reference in a new issue