mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
MDEV-25951 followup: Add #ifdef around debug code
This commit is contained in:
parent
4f85eadf71
commit
098106b432
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue