diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2021-09-11 11:21:25 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2021-09-11 11:21:25 +0300 |
commit | 098106b4327d549bca226ccdeec107dbc3237e97 (patch) | |
tree | 114d1938b22a93a9d5b37df4cc0275b8f3d08606 | |
parent | 4f85eadf71775979f97744abc536df6b67cf3e5d (diff) | |
download | mariadb-git-098106b4327d549bca226ccdeec107dbc3237e97.tar.gz |
MDEV-25951 followup: Add #ifdef around debug code
-rw-r--r-- | storage/innobase/dict/dict0load.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/storage/innobase/dict/dict0load.cc b/storage/innobase/dict/dict0load.cc index 2830aea167f..ab3aaa61970 100644 --- a/storage/innobase/dict/dict0load.cc +++ b/storage/innobase/dict/dict0load.cc @@ -1,7 +1,7 @@ /***************************************************************************** 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 the terms of the GNU General Public License as published by the Free Software @@ -2577,6 +2577,7 @@ corrupted: goto func_exit; } +#ifdef UNIV_DEBUG // The following assertion doesn't hold for FTS indexes // as it may have prefix_len=1 with any charset if (index->type != DICT_FTS) { @@ -2587,6 +2588,7 @@ corrupted: % f.col->mbmaxlen == 0); } } +#endif /* UNIV_DEBUG */ } next_rec: btr_pcur_move_to_next_user_rec(&pcur, &mtr); |