From c7a1fd0a2635b7cd892e0c32deaece3870adf788 Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Tue, 6 Jul 2021 18:00:20 +0800 Subject: [PATCH] Hotfix/sangshuduo/td 3973 use jemalloc for master (#6763) * [TD-3973]: add jemalloc as submodule. * [TD-3973]: add jemalloc as submodule. * [TD-3973]: use jemalloc. build works as following instructions: cmake .. -DJEMALLOC_ENABLED=true make * fix jemalloc at tag 5.2.1 * fix conflicts * make install works. * fix conflicts. * release script works. * fix typo * [TD-3937]: support jemalloc add install funtion to all scripts. * adjust install_jemalloc() position for check compatibility. Co-authored-by: Shuduo Sang --- packaging/tools/install.sh | 2 +- packaging/tools/install_power.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/tools/install.sh b/packaging/tools/install.sh index 3911b1bc72..7adeec487b 100755 --- a/packaging/tools/install.sh +++ b/packaging/tools/install.sh @@ -783,6 +783,7 @@ function update_TDengine() { echo "File taos.tar.gz does not exist" exit 1 fi + install_jemalloc tar -zxf taos.tar.gz # Check if version compatible @@ -822,7 +823,6 @@ function update_TDengine() { install_log install_header install_lib - install_jemalloc if [ "$pagMode" != "lite" ]; then install_connector fi diff --git a/packaging/tools/install_power.sh b/packaging/tools/install_power.sh index b1c4167e94..b21d609e14 100755 --- a/packaging/tools/install_power.sh +++ b/packaging/tools/install_power.sh @@ -752,6 +752,7 @@ function update_PowerDB() { echo "File power.tar.gz does not exist" exit 1 fi + install_jemalloc tar -zxf power.tar.gz # Check if version compatible @@ -790,7 +791,6 @@ function update_PowerDB() { install_log install_header install_lib - install_jemalloc if [ "$pagMode" != "lite" ]; then install_connector fi -- GitLab