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:
marko 2008-12-10 14:06:12 +00:00
parent 4c7f7c4248
commit efbc02a9c0

View file

@ -368,6 +368,11 @@ btr_cur_search_to_nth_level(
btr_op = BTR_DELMARK_OP; 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; watch_leaf = latch_mode & BTR_WATCH_LEAF;
estimate = latch_mode & BTR_ESTIMATE; estimate = latch_mode & BTR_ESTIMATE;