From fa00fedaace932c02af1c784348662582f33c973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Fri, 10 Nov 2017 15:56:03 +0200 Subject: [PATCH] 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. --- storage/innobase/rem/rem0rec.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/innobase/rem/rem0rec.cc b/storage/innobase/rem/rem0rec.cc index b29a43772b0..37bf6e649a2 100644 --- a/storage/innobase/rem/rem0rec.cc +++ b/storage/innobase/rem/rem0rec.cc @@ -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