aboutsummaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-06-24 16:18:44 +0200
committerintrigeri <intrigeri@boum.org>2010-06-24 16:18:44 +0200
commit9179c59b50ddf1a8e11817924df7f589a76500b4 (patch)
tree3989103581f4e312696da752523184bf622bfbaf /handlers
parent6e2a9468cf66b2b58ab4340eb00dda352ee8f613 (diff)
downloadbackupninja-9179c59b50ddf1a8e11817924df7f589a76500b4.tar.gz
backupninja-9179c59b50ddf1a8e11817924df7f589a76500b4.tar.bz2
mysql: don't lock tables in the information_schema database (Closes: #587011)
Diffstat (limited to 'handlers')
-rw-r--r--handlers/mysql.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/handlers/mysql.in b/handlers/mysql.in
index 4dece24..68d5197 100644
--- a/handlers/mysql.in
+++ b/handlers/mysql.in
@@ -255,6 +255,10 @@ then
for db in $databases
do
DUMP_BASE="$MYSQLDUMP $defaultsfile $sqldumpoptions"
+ if [ "$db" = "information_schema" ]
+ then
+ DUMP_BASE="${DUMP_BASE} --skip-lock-tables"
+ fi
# Dumping structure and data
DUMP="$DUMP_BASE $ignore $db"