Skip to content

Commit

Permalink
[fix][chores] Fix deploy_func scripts.
Browse files Browse the repository at this point in the history
Signed-off-by: Ketor <d.ketor@gmail.com>
  • Loading branch information
ketor committed Jun 6, 2024
1 parent d55ee90 commit 6a3082d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions scripts/deploy_func.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,14 @@ function deploy_store() {
echo "-min_system_memory_capacity_free_ratio=${DEFAULT_MIN_SYSTEM_MEMORY_CAPACITY_FREE_RATIO}" >> $dstpath/conf/gflags.conf
echo "-min_system_memory_capacity_free_ratio=${DEFAULT_MIN_SYSTEM_MEMORY_CAPACITY_FREE_RATIO}"
fi
if [ ${DINGODB_ENABLE_ROCKSDB_SYNC} = "1" ];then
echo "" >> $dstpath/conf/gflags.conf
echo "-enable_rocksdb_sync=true" >> $dstpath/conf/gflags.conf
echo "enable_rocksdb_sync is set"
if [ -z "${DINGODB_ENABLE_ROCKSDB_SYNC}" ]; then
echo "DINGODB_ENABLE_ROCKSDB_SYNC is not set"
else
echo "enable_rocksdb_sync is not set"
if [ "${DINGODB_ENABLE_ROCKSDB_SYNC}" = "1" ]; then
echo "" >> $dstpath/conf/gflags.conf
echo "-enable_rocksdb_sync=true" >> $dstpath/conf/gflags.conf
echo "enable_rocksdb_sync is set"
fi
fi
fi
fi
Expand Down

0 comments on commit 6a3082d

Please sign in to comment.