Details
Description
Recent example: https://buildbot.mariadb.net/buildbot/builders/winx64-debug/builds/35923
but it was happening for a few years.
A possible fix could be
--- a/client/mysqldump.c
|
+++ b/client/mysqldump.c
|
@@ -1953,8 +1953,11 @@
|
|
static void free_resources()
|
{
|
- if (md_result_file && md_result_file != stdout)
|
- my_fclose(md_result_file, MYF(0));
|
+ if (md_result_file)
|
+ if (md_result_file != stdout)
|
+ my_fclose(md_result_file, MYF(0));
|
+ else
|
+ fflush(md_result_file);
|
if (get_table_name_result)
|
mysql_free_result(get_table_name_result);
|
if (routine_res) |
or may be even
--- a/client/mysqldump.c
|
+++ b/client/mysqldump.c
|
@@ -1953,7 +1953,7 @@
|
|
static void free_resources()
|
{
|
- if (md_result_file && md_result_file != stdout)
|
+ if (md_result_file)
|
my_fclose(md_result_file, MYF(0));
|
if (get_table_name_result)
|
mysql_free_result(get_table_name_result); |