This is an automated email from the ASF dual-hosted git repository. maxyang pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/cloudberry.git
commit 07670d4699abc80208ce836944d8c2628014f7b3 Author: Junwang Zhao <[email protected]> AuthorDate: Sat Jul 9 18:54:42 2022 +0800 [gpdemo] only create mirror directories when needed (#13777) When `"${WITH_MIRRORS}" != "true"`, do not create the mirror directories since no segment will be created in that directory. Signed-off-by: Junwang Zhao <[email protected]> --- gpAux/gpdemo/demo_cluster.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gpAux/gpdemo/demo_cluster.sh b/gpAux/gpdemo/demo_cluster.sh index d036b725a0..3c2eeee59b 100755 --- a/gpAux/gpdemo/demo_cluster.sh +++ b/gpAux/gpdemo/demo_cluster.sh @@ -262,9 +262,11 @@ do mkdir -p $PRIMARY_DIR PRIMARY_DIRS_LIST="$PRIMARY_DIRS_LIST $PRIMARY_DIR" - MIRROR_DIR=$DATADIRS/dbfast_mirror$i - mkdir -p $MIRROR_DIR - MIRROR_DIRS_LIST="$MIRROR_DIRS_LIST $MIRROR_DIR" + if [ "${WITH_MIRRORS}" == "true" ]; then + MIRROR_DIR=$DATADIRS/dbfast_mirror$i + mkdir -p $MIRROR_DIR + MIRROR_DIRS_LIST="$MIRROR_DIRS_LIST $MIRROR_DIR" + fi done PRIMARY_DIRS_LIST=${PRIMARY_DIRS_LIST#* } MIRROR_DIRS_LIST=${MIRROR_DIRS_LIST#* } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
