diff --git a/storage/innobase/include/rem0wrec.h b/storage/innobase/include/rem0wrec.h index 5cb3dabb5a19..4841830ca41b 100644 --- a/storage/innobase/include/rem0wrec.h +++ b/storage/innobase/include/rem0wrec.h @@ -153,7 +153,7 @@ void validate_rec_offset(const dict_index_t *index, const ulint *offsets, n = index->get_field_off_pos(n); } - validate_rec_offset(index, offsets, n, UT_LOCATION_HERE); + ut_d(validate_rec_offset(index, offsets, n, UT_LOCATION_HERE)); /* Returns nonzero if the extern bit is set in nth field of rec. */ return rec_offs_base(offsets)[1 + n] & REC_OFFS_EXTERNAL; } diff --git a/storage/innobase/rem/rem0wrec.cc b/storage/innobase/rem/rem0wrec.cc index ae128c7b3dbb..ee7e0ffffcbe 100644 --- a/storage/innobase/rem/rem0wrec.cc +++ b/storage/innobase/rem/rem0wrec.cc @@ -127,7 +127,7 @@ ulint rec_offs_nth_sql_null(const dict_index_t *index, const ulint *offsets, n = index->get_field_off_pos(n); } - validate_rec_offset(index, offsets, n, UT_LOCATION_HERE); + ut_d(validate_rec_offset(index, offsets, n, UT_LOCATION_HERE)); return (rec_offs_nth_sql_null_low(offsets, n)); } @@ -137,7 +137,7 @@ ulint rec_offs_nth_default(const dict_index_t *index, const ulint *offsets, n = index->get_field_off_pos(n); } - validate_rec_offset(index, offsets, n, UT_LOCATION_HERE); + ut_d(validate_rec_offset(index, offsets, n, UT_LOCATION_HERE)); return (rec_offs_nth_default_low(offsets, n)); } @@ -147,7 +147,7 @@ ulint rec_offs_nth_size(const dict_index_t *index, const ulint *offsets, n = index->get_field_off_pos(n); } - validate_rec_offset(index, offsets, n, UT_LOCATION_HERE); + ut_d(validate_rec_offset(index, offsets, n, UT_LOCATION_HERE)); return (rec_offs_nth_size_low(offsets, n)); }