<?xml version="1.0" encoding="utf-8"?>
<launchpad-bug id="917662">
  <date_last_updated>2012-03-15 13:41:09.124722+00:00</date_last_updated>
  <api_links>
    <bug_api_link>https://api.launchpad.net/1.0/bugs/917662</bug_api_link>
    <bug_owner_link>https://api.launchpad.net/1.0/~hartmut-php</bug_owner_link>
    <milestone_link></milestone_link>
    <linked_branches_collection_link>https://api.launchpad.net/1.0/bugs/917662/linked_branches</linked_branches_collection_link>
    <activity_link>https://api.launchpad.net/1.0/bugs/917662/activity</activity_link>
  </api_links>
  <bug_web_link>https://bugs.launchpad.net/bugs/917662</bug_web_link>
  <owner>Hartmut Holzgraefe</owner>
  <assignee></assignee>
  <milestone_title></milestone_title>
  <duplicate_link></duplicate_link>
  <duplicate_bug_id></duplicate_bug_id>
  <title>mysql_print_status() missing final fflush()</title>
  <status>New</status>
  <importance>Undecided</importance>
  <created>2012-01-17 14:12:59.624119+00:00</created>
  <description>
<![CDATA[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]]>  </description>
  <activities>
    <activity datechanged="2012-01-17T14:12:59.624119+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[]]>      </newvalue>
      <whatchanged>bug</whatchanged>
      <person>Hartmut Holzgraefe</person>
      <message>added bug</message>
    </activity>
    <activity datechanged="2012-01-17T19:43:51.805240+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[lp:~hartmut-php/maria/bug-917662]]>      </newvalue>
      <whatchanged>branch linked</whatchanged>
      <person>Hartmut Holzgraefe</person>
      <message></message>
    </activity>
    <activity datechanged="2012-01-17T19:45:32.751696+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[http://bugs.mysql.com/bug.php?id=64048]]>      </newvalue>
      <whatchanged>bug watch added</whatchanged>
      <person>Hartmut Holzgraefe</person>
      <message></message>
    </activity>
    <activity datechanged="2012-01-17T19:45:32.751696+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[mysql-server]]>      </newvalue>
      <whatchanged>bug task added</whatchanged>
      <person>Hartmut Holzgraefe</person>
      <message></message>
    </activity>
    <activity datechanged="2012-03-15T13:41:08.967980+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[upstream]]>      </newvalue>
      <whatchanged>tags</whatchanged>
      <person>Elena Stepanova</person>
      <message></message>
    </activity>
  </activities>
  <branches>
    <branch>lp:~hartmut-php/maria/bug-917662</branch>
  </branches>
</launchpad-bug>
