From 5f7c2969126de9f08c6b30ddf54b9707b0e6b815 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 17 Jun 2014 09:44:19 +0200 Subject: MDEV-6343: Incorrect error handling in mysqldump Fix an error case where success was returned instead of error. --- client/mysqldump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/mysqldump.c b/client/mysqldump.c index ace22c1ec64..b859876cff6 100644 --- a/client/mysqldump.c +++ b/client/mysqldump.c @@ -1171,7 +1171,7 @@ check_consistent_binlog_pos(char *binlog_pos_file, char *binlog_pos_offset) if (mysql_query_with_error_report(mysql, &res, "SHOW STATUS LIKE 'binlog_snapshot_%'")) - return 1; + return 0; found= 0; while ((row= mysql_fetch_row(res))) -- cgit v1.2.1