Commit efbc02a9 authored by marko's avatar marko

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.
parent 4c7f7c42
......@@ -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;
......
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