summaryrefslogtreecommitdiff
path: root/scripts/wsrep_sst_mysqldump.sh
diff options
context:
space:
mode:
authorSeppo Jaakola <seppo.jaakola@codership.com>2013-05-25 12:22:57 +0300
committerSeppo Jaakola <seppo.jaakola@codership.com>2013-05-25 12:22:57 +0300
commit9d1546fe2cdced5efb4af831fa2e560b7f80fb54 (patch)
tree53701c8fc97aa5efce5d901fda1395e82dd49a79 /scripts/wsrep_sst_mysqldump.sh
parent48af4be62a077f5edfadc9b5ea4f6c8c4b00c469 (diff)
downloadmariadb-git-9d1546fe2cdced5efb4af831fa2e560b7f80fb54.tar.gz
References: MDEV-4572 - merge with lp:codership-mysql/5.5-23 revisions 3858..3867
Diffstat (limited to 'scripts/wsrep_sst_mysqldump.sh')
-rw-r--r--scripts/wsrep_sst_mysqldump.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/wsrep_sst_mysqldump.sh b/scripts/wsrep_sst_mysqldump.sh
index 120533edc4e..4434792240d 100644
--- a/scripts/wsrep_sst_mysqldump.sh
+++ b/scripts/wsrep_sst_mysqldump.sh
@@ -38,12 +38,12 @@ local_ip()
return 1
}
-if test -z "$WSREP_SST_OPT_USER"; then err "USER cannot be nil"; exit $EINVAL; fi
-if test -z "$WSREP_SST_OPT_HOST"; then err "HOST cannot be nil"; exit $EINVAL; fi
-if test -z "$WSREP_SST_OPT_PORT"; then err "PORT cannot be nil"; exit $EINVAL; fi
-if test -z "$WSREP_SST_OPT_LPORT"; then err "LPORT cannot be nil"; exit $EINVAL; fi
-if test -z "$WSREP_SST_OPT_SOCKET";then err "SOCKET cannot be nil";exit $EINVAL; fi
-if test -z "$WSREP_SST_OPT_GTID"; then err "GTID cannot be nil"; exit $EINVAL; fi
+if test -z "$WSREP_SST_OPT_USER"; then wsrep_log_error "USER cannot be nil"; exit $EINVAL; fi
+if test -z "$WSREP_SST_OPT_HOST"; then wsrep_log_error "HOST cannot be nil"; exit $EINVAL; fi
+if test -z "$WSREP_SST_OPT_PORT"; then wsrep_log_error "PORT cannot be nil"; exit $EINVAL; fi
+if test -z "$WSREP_SST_OPT_LPORT"; then wsrep_log_error "LPORT cannot be nil"; exit $EINVAL; fi
+if test -z "$WSREP_SST_OPT_SOCKET";then wsrep_log_error "SOCKET cannot be nil";exit $EINVAL; fi
+if test -z "$WSREP_SST_OPT_GTID"; then wsrep_log_error "GTID cannot be nil"; exit $EINVAL; fi
if local_ip $WSREP_SST_OPT_HOST && \
[ "$WSREP_SST_OPT_PORT" = "$WSREP_SST_OPT_LPORT" ]
@@ -57,7 +57,7 @@ fi
if ! mysql --version | grep 'Distrib 5.5' >/dev/null
then
mysql --version >&2
- err "this operation requires MySQL client version 5.5.x"
+ wsrep_log_error "this operation requires MySQL client version 5.5.x"
exit $EINVAL
fi