3955 Praveenkumar Hulakund 2012-02-24
Bug#13608112 - 64048: MYSQL_PRINT_STATUS() MISSING FINAL FFLUSH()
Analysis:
While printing debug information, memory related information and event
related information were written to buffer after flushing it. Because of this,
these information were getting printed when we do the next flush.
Fix:
Instead of calling fflush() before writing memory and event
information, calling it after memory and event information.
modified:
sql/sql_test.cc
3954 Chaithra Gopalareddy 2012-02-24 [merge]
Null merge from 5.5 to 5.6
=== modified file 'sql/sql_test.cc'
--- a/sql/sql_test.cc 2012-02-15 13:57:17 +0000
+++ b/sql/sql_test.cc 2012-02-24 06:43:23 +0000
@@ -572,7 +572,6 @@ Next alarm time: %lu\n",
alarm_info.next_alarm_time);
#endif
display_table_locks();
- fflush(stdout);
#ifdef HAVE_MALLINFO
struct mallinfo info= mallinfo();
printf("\nMemory status:\n\
@@ -604,6 +603,7 @@ Estimated memory (with thread stack):
Events::dump_internal_status();
#endif
puts("");
+ fflush(stdout);
}
No bundle (reason: useless for push emails).
| Thread |
|---|
| • bzr push into mysql-trunk branch (praveenkumar.hulakund:3954 to 3955)Bug#13608112 | Praveenkumar Hulakund | 24 Feb |