[ob do] obd.sh 支持fastreboot

This commit is contained in:
obdev
2023-02-09 13:54:16 +00:00
committed by ob-robot
parent 41eb9a94e0
commit d312d359b4

View File

@ -334,7 +334,12 @@ function deploy_cluster {
done
fi
get_init_sql
if [[ "$NEED_FAST_REBOOT" == "1" ]]
then
obd test mysqltest "$deploy_name" $INIT_FLIES --init-only $CLIENT_BIN_ARGS --fast-reboot
else
obd test mysqltest "$deploy_name" $INIT_FLIES --init-only $CLIENT_BIN_ARGS
fi
}
function get_init_sql {
@ -553,6 +558,7 @@ function main() {
--ip ) IPADDRESS="$2"; shift 2 ;;
--disable-reboot ) DISABLE_REBOOT="1"; extra_args="$extra_args $1"; shift ;;
--reboot ) NEED_REBOOT="1"; shift ;;
--fast-reboot ) NEED_FAST_REBOOT="1"; extra_args="$extra_args $1"; shift ;;
--cp ) EXEC_CP="1"; shift ;;
--skip-copy ) SKIP_COPY="1"; shift ;;
--mini) MINI="1"; shift ;;