Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-11713

Optimize DBUG_PRINT and introduce DBUG_LOG

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            Please review the changes to dbug.c and my_dbug.h.

            marko Marko Mäkelä added a comment - Please review the changes to dbug.c and my_dbug.h.

            ok to push InnoDB part, server part need review from ~serg

            jplindst Jan Lindström (Inactive) added a comment - ok to push InnoDB part, server part need review from ~serg

            People

              marko Marko Mäkelä
              marko Marko Mäkelä
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.