MDEV-14100 Assertion `!is_user_rec || leaf || ...

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.
This commit is contained in:
Marko Mäkelä 2017-11-10 15:56:03 +02:00
parent 9618c04e3f
commit fa00fedaac

View file

@ -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