diff options
author | unknown <gkodinov/kgeorge@magare.gmz> | 2008-03-07 11:15:49 +0200 |
---|---|---|
committer | unknown <gkodinov/kgeorge@magare.gmz> | 2008-03-07 11:15:49 +0200 |
commit | 99c0b5e10ff2f64df6b3d90096be0ece31130dcb (patch) | |
tree | ef121e1746fd1e03d95bdb7f579dfffeb25a171a /client | |
parent | 4e7c4ab929b85eaaa91a8c678872c44fc421c396 (diff) | |
download | mariadb-git-99c0b5e10ff2f64df6b3d90096be0ece31130dcb.tar.gz |
Bug #34909: mysqldump returns a 0 status on error when using
--master-data
No error code was returned by mysqldump if it detects that binary
logging is not enabled on the server.
Fixed by returning error code.
client/mysqldump.c:
Bug #34909: add error code
mysql-test/r/mysqldump-no-binlog.result:
Bug #34909: test case
mysql-test/t/mysqldump-no-binlog-master.opt:
Bug #34909: test case
mysql-test/t/mysqldump-no-binlog.test:
Bug #34909: test case
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqldump.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c index 980013d539a..e8129a6fd73 100644 --- a/client/mysqldump.c +++ b/client/mysqldump.c @@ -3285,6 +3285,7 @@ static int do_show_master_status(MYSQL *mysql_con) my_printf_error(0, "Error: Binlogging on server not active", MYF(0)); mysql_free_result(master); + maybe_exit(EX_MYSQLERR); return 1; } mysql_free_result(master); |