From c009ca7bf84992c385331442adab0cb39529449a Mon Sep 17 00:00:00 2001 From: Sugu Sougoumarane Date: Sun, 9 Dec 2018 09:46:23 -0800 Subject: [PATCH] local example: fix typos The tablet kills were inverted between 100 vs 200 Also added a delete of all data on teardown Signed-off-by: Sugu Sougoumarane --- examples/local/306_down_shard_0.sh | 2 +- examples/local/401_teardown.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/local/306_down_shard_0.sh b/examples/local/306_down_shard_0.sh index 530746846d0..7b9f589d635 100755 --- a/examples/local/306_down_shard_0.sh +++ b/examples/local/306_down_shard_0.sh @@ -21,6 +21,6 @@ set -e # shellcheck disable=SC2128 script_root=$(dirname "${BASH_SOURCE}") -CELL=zone1 UID_BASE=100 "$script_root/vttablet-down.sh" +CELL=zone1 UID_BASE=200 "$script_root/vttablet-down.sh" disown -a diff --git a/examples/local/401_teardown.sh b/examples/local/401_teardown.sh index f314b6a6073..90b781fdd0e 100755 --- a/examples/local/401_teardown.sh +++ b/examples/local/401_teardown.sh @@ -25,7 +25,7 @@ set -e script_root=$(dirname "${BASH_SOURCE}") ./vtgate-down.sh -CELL=zone1 UID_BASE=200 "$script_root/vttablet-down.sh" +CELL=zone1 UID_BASE=100 "$script_root/vttablet-down.sh" CELL=zone1 UID_BASE=300 "$script_root/vttablet-down.sh" CELL=zone1 UID_BASE=400 "$script_root/vttablet-down.sh" ./vtctld-down.sh @@ -36,4 +36,6 @@ else CELL=zone1 "$script_root/zk-down.sh" fi +rm -r $VTDATAROOT/* + disown -a