[ob do] obd.sh 支持fastreboot
This commit is contained in:
@ -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 ;;
|
||||
|
||||
Reference in New Issue
Block a user