Skip to content

Commit 13d0b98

Browse files
author
Arun Kuruvila
committed
Bug#18284273: MYSQLDUMP SILENTLY QUITS WHEN IT ENCOUNTERS AN
ERROR. Description:- The client utility, "mysqldump" fails silently without printing any error message when it encounters an error while executing FLUSH LOGS. Analysis:- "mysqldump" uses the C API, "mysql_refresh()", to flush the logs. Currently no error messages are printed upon "mysql_refresh()" failure in "mysqldump". Fix:- Proper error messages are printed upon "mysql_refresh()" failure. NOTE:- mtr test case is not added since its difficult to simulate an error for "mysql_refresh()" through mtr.
1 parent 75582fb commit 13d0b98

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client/mysqldump.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5825,7 +5825,10 @@ int main(int argc, char **argv)
58255825
if (flush_logs || opt_delete_master_logs)
58265826
{
58275827
if (mysql_refresh(mysql, REFRESH_LOG))
5828+
{
5829+
DB_error(mysql, "when doing refresh");
58285830
goto err;
5831+
}
58295832
verbose_msg("-- main : logs flushed successfully!\n");
58305833
}
58315834

0 commit comments

Comments
 (0)