summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authortnurnberg@sin.intern.azundris.com <>2007-10-04 08:53:39 +0200
committertnurnberg@sin.intern.azundris.com <>2007-10-04 08:53:39 +0200
commit34d43d3b0471fa3e8a8ea9453da060dc8b9f024f (patch)
treed9d9b173ceac38761720d683104283b57fe8a422 /client
parent2079d7619dd0c17ee381bbd69924e4a9512bc233 (diff)
parent2686905392af7c1de129e65ea72853b5a859ad60 (diff)
downloadmariadb-git-34d43d3b0471fa3e8a8ea9453da060dc8b9f024f.tar.gz
Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.1-maint
into sin.intern.azundris.com:/home/tnurnberg/30444/51-30444
Diffstat (limited to 'client')
-rw-r--r--client/mysqldump.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c
index 582e9e3b3b9..b7dbf8a4633 100644
--- a/client/mysqldump.c
+++ b/client/mysqldump.c
@@ -4369,6 +4369,18 @@ static int start_transaction(MYSQL *mysql_con)
need the REPEATABLE READ level (not anything lower, for example READ
COMMITTED would give one new consistent read per dumped table).
*/
+ if ((mysql_get_server_version(mysql_con) < 40100) && opt_master_data)
+ {
+ fprintf(stderr, "-- %s: the combination of --single-transaction and "
+ "--master-data requires a MySQL server version of at least 4.1 "
+ "(current server's version is %s). %s\n",
+ ignore_errors ? "Warning" : "Error",
+ mysql_con->server_version ? mysql_con->server_version : "unknown",
+ ignore_errors ? "Continuing due to --force, backup may not be consistent across all tables!" : "Aborting.");
+ if (!ignore_errors)
+ exit(EX_MYSQLERR);
+ }
+
return (mysql_query_with_error_report(mysql_con, 0,
"SET SESSION TRANSACTION ISOLATION "
"LEVEL REPEATABLE READ") ||