mysql_print_status() missing final fflush()

Bug #917662 reported by Hartmut Holzgraefe on 2012-01-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MariaDB
New
Undecided
Unassigned
MySQL Server
Unknown
Unknown

Bug 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

Elena Stepanova (elenst) on 2012-03-15
tags: added: upstream
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.