From d312d359b4e150377ac6f3144a4c8c37f40f370d Mon Sep 17 00:00:00 2001 From: obdev Date: Thu, 9 Feb 2023 13:54:16 +0000 Subject: [PATCH] =?UTF-8?q?[ob=20do]=20obd.sh=20=E6=94=AF=E6=8C=81fastrebo?= =?UTF-8?q?ot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/deploy/obd.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/deploy/obd.sh b/tools/deploy/obd.sh index d26b7e3517..5eca9ecaff 100755 --- a/tools/deploy/obd.sh +++ b/tools/deploy/obd.sh @@ -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 ;;