Commit a49362ec authored by Francis Dupont's avatar Francis Dupont

[5379] Added lease type check

parent e8ceae92
......@@ -385,6 +385,13 @@ memfile_dump() {
mysql_dump() {
# Check the lease type was given
if [ $dump_type -eq o ]; then
log_error "lease-dump: lease type ( -4 or -6 ) needs to be specified"
usage
exit 1
fi
# get the correct dump query
version=`mysql_version`
retcode=$?
......@@ -440,6 +447,13 @@ mysql_dump() {
### Functions used for dump
pgsql_dump() {
# Check the lease type was given
if [ $dump_type -eq o ]; then
log_error "lease-dump: lease type ( -4 or -6 ) needs to be specified"
usage
exit 1
fi
version=`pgsql_version`
get_dump_query $version
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment