Skip to content

Commit

Permalink
MDEV-14100 Assertion `!is_user_rec || leaf || ...
Browse files Browse the repository at this point in the history
rec_get_offsets_func(): Relax a bogus debug assertion.
It would fail when we are operating on a copied prefix
of a node pointer record.
  • Loading branch information
dr-m committed Nov 10, 2017
1 parent 9618c04 commit fa00fed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storage/innobase/rem/rem0rec.cc
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ rec_get_offsets_func(
ut_ad(is_user_rec || n == 1);
ut_ad(!is_user_rec || leaf || index->is_dummy
|| dict_index_is_ibuf(index)
|| n == n_fields /* dict_stats_analyze_index_level() */
|| n
== dict_index_get_n_unique_in_tree_nonleaf(index) + 1);
ut_ad(!is_user_rec || !leaf || index->is_dummy
Expand Down

0 comments on commit fa00fed

Please sign in to comment.