mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 06:22:28 +01:00
branches/innodb+: btr_cur_search_to_nth_level(): Add debug assertions
that operations on clustered indexes or on the insert buffer B-tree must not be buffered.
This commit is contained in:
parent
4c7f7c4248
commit
efbc02a9c0
1 changed files with 5 additions and 0 deletions
|
@ -368,6 +368,11 @@ btr_cur_search_to_nth_level(
|
|||
btr_op = BTR_DELMARK_OP;
|
||||
}
|
||||
|
||||
/* Operations on the insert buffer tree cannot be buffered. */
|
||||
ut_ad(btr_op == BTR_NO_OP || !dict_index_is_ibuf(index));
|
||||
/* Operations on the clustered index cannot be buffered. */
|
||||
ut_ad(btr_op == BTR_NO_OP || !dict_index_is_clust(index));
|
||||
|
||||
watch_leaf = latch_mode & BTR_WATCH_LEAF;
|
||||
|
||||
estimate = latch_mode & BTR_ESTIMATE;
|
||||
|
|
Loading…
Reference in a new issue