From 7d9efc95a28fd00d113dd9ab6b1ecd768845c0cb Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Tue, 6 Jul 2021 18:31:38 +0800 Subject: [PATCH] Feature/sangshuduo/td 3973 use jemalloc (#6766) * [TD-3973]: add jemalloc as submodule. * add macro definitions in cmake. * [TD-3973]: use jemalloc. build works as following instructions: cmake .. -DJEMALLOC_ENABLED=true make * fix jemalloc at tag 5.2.1 * link jemalloc works. * make install works. * support jemalloc in release.sh. * release script works. * fix a typo. * [TD-3937]: support jemalloc add install funtion to all scripts. * adjust install_jemalloc() position for update check compatiblity. * fix position bug. Co-authored-by: Shuduo Sang --- packaging/tools/install.sh | 1 + packaging/tools/install_power.sh | 1 + packaging/tools/install_tq.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/packaging/tools/install.sh b/packaging/tools/install.sh index 7adeec487b..226e09d846 100755 --- a/packaging/tools/install.sh +++ b/packaging/tools/install.sh @@ -785,6 +785,7 @@ function update_TDengine() { fi install_jemalloc tar -zxf taos.tar.gz + install_jemalloc # Check if version compatible if ! is_version_compatible; then diff --git a/packaging/tools/install_power.sh b/packaging/tools/install_power.sh index b21d609e14..e6941301c1 100755 --- a/packaging/tools/install_power.sh +++ b/packaging/tools/install_power.sh @@ -754,6 +754,7 @@ function update_PowerDB() { fi install_jemalloc tar -zxf power.tar.gz + install_jemalloc # Check if version compatible if ! is_version_compatible; then diff --git a/packaging/tools/install_tq.sh b/packaging/tools/install_tq.sh index 33e781dd51..e0726c0bb6 100755 --- a/packaging/tools/install_tq.sh +++ b/packaging/tools/install_tq.sh @@ -754,6 +754,7 @@ function update_tq() { fi install_jemalloc tar -zxf tq.tar.gz + install_jemalloc # Check if version compatible if ! is_version_compatible; then