mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
row_search_index_entry(): Simplify some assertions
This commit is contained in:
parent
1fdc161d8f
commit
fc6a7e90ea
1 changed files with 3 additions and 2 deletions
|
@ -1292,7 +1292,7 @@ row_search_index_entry(
|
|||
ut_ad(dtuple_check_typed(entry));
|
||||
|
||||
if (dict_index_is_spatial(index)) {
|
||||
ut_ad(mode & BTR_MODIFY_LEAF || mode & BTR_MODIFY_TREE);
|
||||
ut_ad(mode & (BTR_MODIFY_LEAF | BTR_MODIFY_TREE));
|
||||
rtr_pcur_open(index, entry, PAGE_CUR_RTREE_LOCATE,
|
||||
mode, pcur, mtr);
|
||||
} else {
|
||||
|
@ -1301,7 +1301,8 @@ row_search_index_entry(
|
|||
|
||||
switch (btr_pcur_get_btr_cur(pcur)->flag) {
|
||||
case BTR_CUR_DELETE_REF:
|
||||
ut_a(mode & BTR_DELETE && !dict_index_is_spatial(index));
|
||||
ut_ad(mode & BTR_DELETE);
|
||||
ut_ad(!index->is_spatial());
|
||||
return(ROW_NOT_DELETED_REF);
|
||||
|
||||
case BTR_CUR_DEL_MARK_IBUF:
|
||||
|
|
Loading…
Add table
Reference in a new issue