mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
MDEV-22721 Remove bloat caused by InnoDB logger class
Introduce a new ATTRIBUTE_NOINLINE to ib::logger member functions, and add UNIV_UNLIKELY hints to callers. Also, remove some crash reporting output. If needed, the information will be available using debugging tools. Furthermore, remove some fts_enable_diag_print output that included indexed words in raw form. The code seemed to assume that words are NUL-terminated byte strings. It is not clear whether a NUL terminator is always guaranteed to be present. Also, UCS2 or UTF-16 strings would typically contain many NUL bytes.
This commit is contained in:
parent
ad2bf1129c
commit
eba2d10ac5
38 changed files with 227 additions and 326 deletions
|
|
@ -458,7 +458,7 @@ btr_pcur_open_low(
|
|||
index, level, tuple, mode, latch_mode,
|
||||
btr_cursor, 0, file, line, mtr, autoinc);
|
||||
|
||||
if (err != DB_SUCCESS) {
|
||||
if (UNIV_UNLIKELY(err != DB_SUCCESS)) {
|
||||
ib::warn() << " Error code: " << err
|
||||
<< " btr_pcur_open_low "
|
||||
<< " level: " << level
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue