diff options
-rw-r--r-- | innobase/include/rem0rec.ic | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/innobase/include/rem0rec.ic b/innobase/include/rem0rec.ic index a8acb4e304a..8443b5fa07d 100644 --- a/innobase/include/rem0rec.ic +++ b/innobase/include/rem0rec.ic @@ -713,8 +713,9 @@ rec_offs_validate( } } if (index) { + ulint max_n_fields; ut_ad((ulint) index == offsets[2]); - ulint max_n_fields = ut_max( + max_n_fields = ut_max( dict_index_get_n_fields(index), dict_index_get_n_unique_in_tree(index) + 1); if (comp && rec) { |