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

LP:917662 - mysql_print_status() missing final fflush()

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 5.1.67, 5.2.14, 5.3.12, 5.5.36, 10.0.9
    • 10.0.10
    • None

    Description

      See http://bugs.mysql.com/bug.php?id=64048

      Description:
      When requesting debug status output with

      mysqladmin debug

      the output in the error log (assuming that mysqld_safe was used)
      seems to be truncated at first as the mallinfo() related part
      is missing, this part will only show up in the error log when
      debug is called a 2nd time. This makes the missing part of the
      first invocation appear but then again the mallinfo() output
      for the 2nd call is missing

      How to repeat:
      Issue "mysqladmin debug", check output in mysql error log for the "Memory status:"
      section ...

      Suggested fix:
      add an extra fflush(stdout) at the very end of mysql_print_status() in sql/sql_test.cc

      Attachments

        Activity

          People

            monty Michael Widenius
            hholzgra Hartmut Holzgraefe
            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.