diff options
author | mats@mysql.com <> | 2005-07-05 16:02:03 +0200 |
---|---|---|
committer | mats@mysql.com <> | 2005-07-05 16:02:03 +0200 |
commit | 0449ee1ca8030909ed9a6d319aa37851476731b2 (patch) | |
tree | b455f1d05e9596838abc1ffd33e0ca47bc236d6e /client | |
parent | 4bc6bd38ec113ffa8682ee7d52c9b84d52de7534 (diff) | |
parent | 3c427341749963ada8666eaf24a206c17ef29d56 (diff) | |
download | mariadb-git-0449ee1ca8030909ed9a6d319aa37851476731b2.tar.gz |
Merging 4.1 into 5.0
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqldump.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c index b2bf23c3e3a..5705571777a 100644 --- a/client/mysqldump.c +++ b/client/mysqldump.c @@ -2561,6 +2561,7 @@ static int do_show_master_status(MYSQL *mysql_con) row = mysql_fetch_row(master); if (row && row[0] && row[1]) { + /* SHOW MASTER STATUS reports file and position */ if (opt_comments) fprintf(md_result_file, "\n--\n-- Position to start replication or point-in-time " @@ -2570,6 +2571,14 @@ static int do_show_master_status(MYSQL *mysql_con) comment_prefix, row[0], row[1]); check_io(md_result_file); } + else if (!ignore_errors) + { + /* SHOW MASTER STATUS reports nothing and --force is not enabled */ + my_printf_error(0, "Error: Binlogging on server not active", + MYF(0), mysql_error(mysql_con)); + mysql_free_result(master); + return 1; + } mysql_free_result(master); } return 0; |