• Marko Mäkelä's avatar
    MDEV-11713 Optimize DBUG_PRINT and introduce DBUG_LOG · bf35deda
    Marko Mäkelä authored
    MariaDB Server is unnecessarily evaluating the arguments of
    DBUG_PRINT() macros when the label is not defined.
    
    The macro DBUG_LOG() for C++ operator<< output which was added for
    InnoDB diagnostics in MySQL 5.7 is missing from MariaDB. Unlike the
    MySQL 5.7 implementation, MariaDB will avoid allocating and
    initializing the output string when the label is not defined.
    
    Introduce DBUG_OUT("crypt") and DBUG_OUT("checksum") for some InnoDB
    diagnostics, replacing some use of ib::info().
    bf35deda
row0upd.cc 92.1 KB