Commit 098106b4 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-25951 followup: Add #ifdef around debug code

parent 4f85eadf
/***************************************************************************** /*****************************************************************************
Copyright (c) 1996, 2016, Oracle and/or its affiliates. All Rights Reserved. Copyright (c) 1996, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2016, 2020, MariaDB Corporation. Copyright (c) 2016, 2021, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software the terms of the GNU General Public License as published by the Free Software
...@@ -2577,6 +2577,7 @@ dict_load_indexes( ...@@ -2577,6 +2577,7 @@ dict_load_indexes(
goto func_exit; goto func_exit;
} }
#ifdef UNIV_DEBUG
// The following assertion doesn't hold for FTS indexes // The following assertion doesn't hold for FTS indexes
// as it may have prefix_len=1 with any charset // as it may have prefix_len=1 with any charset
if (index->type != DICT_FTS) { if (index->type != DICT_FTS) {
...@@ -2587,6 +2588,7 @@ dict_load_indexes( ...@@ -2587,6 +2588,7 @@ dict_load_indexes(
% f.col->mbmaxlen == 0); % f.col->mbmaxlen == 0);
} }
} }
#endif /* UNIV_DEBUG */
} }
next_rec: next_rec:
btr_pcur_move_to_next_user_rec(&pcur, &mtr); btr_pcur_move_to_next_user_rec(&pcur, &mtr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment