Skip to content

Commit de0414f

Browse files
rock-gitchuandew
authored andcommitted
[chore][mds] Rename mdsv2 to mds.
1 parent f0ad5e4 commit de0414f

File tree

182 files changed

+2606
-2606
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+2606
-2606
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

deploy-scripts/clean_start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mydir="${BASH_SOURCE%/*}"
44
if [[ ! -d "$mydir" ]]; then mydir="$PWD"; fi
55
. $mydir/shflags
66

7-
DEFINE_string role 'mdsv2' 'server role'
7+
DEFINE_string role 'mds' 'server role'
88

99
# parse the command-line
1010
FLAGS "$@" || exit 1

deploy-scripts/deploy.sh

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mydir="${BASH_SOURCE%/*}"
44
if [[ ! -d "$mydir" ]]; then mydir="$PWD"; fi
55
. $mydir/shflags
66

7-
DEFINE_string role 'mdsv2' 'server role'
7+
DEFINE_string role 'mds' 'server role'
88
DEFINE_boolean clean_log 1 'clean log'
99
DEFINE_boolean replace_conf 0 'replace conf'
1010
#DEFINE_string parameters 'deploy_parameters' 'server role'
@@ -54,9 +54,9 @@ function deploy_server() {
5454
fi
5555
ln -s "${srcpath}/build/bin/${server_name}" "${dstpath}/bin/${server_name}"
5656

57-
# link dingo-mdsv2-client
58-
if [ "${role}" == "mdsv2" ]; then
59-
client_name="dingo-mdsv2-client"
57+
# link dingo-mds-client
58+
if [ "${role}" == "mds" ]; then
59+
client_name="dingo-mds-client"
6060
if [ -f "${dstpath}/bin/${client_name}" ]; then
6161
rm -f "${dstpath}/bin/${client_name}"
6262
fi
@@ -65,21 +65,15 @@ function deploy_server() {
6565

6666
if [ "${FLAGS_replace_conf}" == "0" ]; then
6767
# conf file
68-
dist_conf="${dstpath}/conf/${server_name}.conf"
69-
cp $srcpath/confv2/${server_name}.template.conf $dist_conf
68+
dist_conf="${dstpath}/conf/${role}.conf"
69+
cp $srcpath/conf/${role}.template.conf $dist_conf
7070

7171
sed -i 's,\$INSTANCE_ID\$,'"$instance_id"',g' $dist_conf
7272
sed -i 's,\$SERVER_HOST\$,'"$SERVER_HOST"',g' $dist_conf
7373
sed -i 's,\$SERVER_LISTEN_HOST\$,'"$SERVER_LISTEN_HOST"',g' $dist_conf
7474
sed -i 's,\$SERVER_PORT\$,'"$server_port"',g' $dist_conf
7575
sed -i 's,\$BASE_PATH\$,'"$dstpath"',g' $dist_conf
7676

77-
# gflags file
78-
if [ -f $srcpath/conf/${server_name}.gflags ]
79-
then
80-
cp $srcpath/confv2/${server_name}.gflags $dstpath/conf/
81-
fi
82-
8377
# coor_list file
8478
coor_file="${dstpath}/conf/coor_list"
8579
echo $COORDINATOR_ADDR > $coor_file
@@ -93,13 +87,13 @@ function deploy_server() {
9387

9488
program_dir=$BASE_DIR/dist/${FLAGS_role}
9589

96-
if [ ${FLAGS_role} == "mdsv2" ]; then
97-
echo "============ deploy mdsv2 ============"
90+
if [ ${FLAGS_role} == "mds" ]; then
91+
echo "============ deploy mds ============"
9892
# print the parameters
9993
echo "FLAGS_role: ${FLAGS_role}"
10094
echo "BASE_DIR: ${BASE_DIR}"
10195
echo "program_dir: ${program_dir}"
102-
echo "MDSV2_INSTANCE_START_ID: ${MDSV2_INSTANCE_START_ID}"
96+
echo "MDS_INSTANCE_START_ID: ${MDS_INSTANCE_START_ID}"
10397
echo "SERVER_START_PORT: ${SERVER_START_PORT}"
104-
deploy_server ${FLAGS_role} ${BASE_DIR} ${program_dir} ${MDSV2_INSTANCE_START_ID} ${SERVER_START_PORT}
98+
deploy_server ${FLAGS_role} ${BASE_DIR} ${program_dir} ${MDS_INSTANCE_START_ID} ${SERVER_START_PORT}
10599
fi

deploy-scripts/start.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ mydir="${BASH_SOURCE%/*}"
99
if [[ ! -d "$mydir" ]]; then mydir="$PWD"; fi
1010
. $mydir/shflags
1111

12-
DEFINE_string role 'mdsv2' 'server role'
12+
DEFINE_string role 'mds' 'server role'
1313

1414
# parse the command-line
1515
FLAGS "$@" || exit 1
@@ -82,7 +82,7 @@ function start_server() {
8282
server_name="dingo-${role}"
8383
echo "start server: ${root_dir}/bin/${server_name}"
8484

85-
exec ${root_dir}/bin/${server_name} --conf=${root_dir}/conf/${server_name}.conf >> ${root_dir}/log/mdsv2.log 2>&1
85+
exec ${root_dir}/bin/${server_name} --conf=${root_dir}/conf/${role}.conf >> ${root_dir}/log/mds.log 2>&1
8686
}
8787

8888

deploy-scripts/start_fuse.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mydir="${BASH_SOURCE%/*}"
44
if [[ ! -d "$mydir" ]]; then mydir="$PWD"; fi
55
. $mydir/shflags
66

7-
DEFINE_string fsname 'mdsv2_fs_mono' 'server role'
7+
DEFINE_string fsname 'mds_fs_mono' 'server role'
88
DEFINE_string fstype 'vfs_v2' 'fs type'
99
DEFINE_string mountpoint '' 'mount point'
1010

deploy-scripts/stop.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mydir="${BASH_SOURCE%/*}"
44
if [[ ! -d "$mydir" ]]; then mydir="$PWD"; fi
55
. $mydir/shflags
66

7-
DEFINE_string role 'mdsv2' 'server role'
7+
DEFINE_string role 'mds' 'server role'
88
DEFINE_integer force 0 'use kill -9 to stop'
99
DEFINE_integer use_pgrep 0 'use pgrep to get pid'
1010

dev-scripts/clean_start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mydir="${BASH_SOURCE%/*}"
44
if [[ ! -d "$mydir" ]]; then mydir="$PWD"; fi
55
. $mydir/shflags
66

7-
DEFINE_string role 'mdsv2' 'server role'
7+
DEFINE_string role 'mds' 'server role'
88
DEFINE_integer server_num 1 'server number'
99

1010
# parse the command-line

dev-scripts/deploy.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mydir="${BASH_SOURCE%/*}"
44
if [[ ! -d "$mydir" ]]; then mydir="$PWD"; fi
55
. $mydir/shflags
66

7-
DEFINE_string role 'mdsv2' 'server role'
7+
DEFINE_string role 'mds' 'server role'
88
DEFINE_integer server_num 1 'server number'
99
DEFINE_boolean clean_log 1 'clean log'
1010
DEFINE_boolean replace_conf 0 'replace conf'
@@ -55,9 +55,9 @@ function deploy_server() {
5555
fi
5656
ln "${srcpath}/build/bin/${server_name}" "${dstpath}/bin/${server_name}"
5757

58-
# link dingo-mdsv2-client
59-
if [ "${role}" == "mdsv2" ]; then
60-
client_name="dingo-mdsv2-client"
58+
# link dingo-mds-client
59+
if [ "${role}" == "mds" ]; then
60+
client_name="dingo-mds-client"
6161
if [ -f "${dstpath}/bin/${client_name}" ]; then
6262
rm -f "${dstpath}/bin/${client_name}"
6363
fi
@@ -66,8 +66,8 @@ function deploy_server() {
6666

6767
if [ "${FLAGS_replace_conf}" == "0" ]; then
6868
# conf file
69-
dist_conf="${dstpath}/conf/${server_name}.conf"
70-
cp $srcpath/confv2/${server_name}.template.conf $dist_conf
69+
dist_conf="${dstpath}/conf/${role}.conf"
70+
cp $srcpath/conf/${role}.template.conf $dist_conf
7171

7272
sed -i 's,\$INSTANCE_ID\$,'"$instance_id"',g' $dist_conf
7373
sed -i 's,\$SERVER_HOST\$,'"$SERVER_HOST"',g' $dist_conf
@@ -89,8 +89,8 @@ function deploy_server() {
8989
for ((i=1; i<=$FLAGS_server_num; ++i)); do
9090
program_dir=$BASE_DIR/dist/${FLAGS_role}-${i}
9191

92-
if [ ${FLAGS_role} == "mdsv2" ]; then
93-
deploy_server ${FLAGS_role} ${BASE_DIR} ${program_dir} `expr ${MDSV2_INSTANCE_START_ID} + ${i}` `expr ${SERVER_START_PORT} + ${i}`
92+
if [ ${FLAGS_role} == "mds" ]; then
93+
deploy_server ${FLAGS_role} ${BASE_DIR} ${program_dir} `expr ${MDS_INSTANCE_START_ID} + ${i}` `expr ${SERVER_START_PORT} + ${i}`
9494
fi
9595

9696
done

0 commit comments

Comments
 (0)