From 0c664d5a8be880ac5154b786e7ae0bd016bc77df Mon Sep 17 00:00:00 2001 From: zhang_xubo <2578876417@qq.com> Date: Tue, 25 Jul 2023 21:30:52 +0800 Subject: [PATCH] package add tool pagehack and xlogdump --- build/script/aarch64_opengauss_list | 2 ++ build/script/utils/make_compile.sh | 15 +++++++++++++++ build/script/x86_64_opengauss_list | 2 ++ 3 files changed, 19 insertions(+) diff --git a/build/script/aarch64_opengauss_list b/build/script/aarch64_opengauss_list index fd36832e0..6d543cee0 100644 --- a/build/script/aarch64_opengauss_list +++ b/build/script/aarch64_opengauss_list @@ -45,6 +45,8 @@ ./bin/server.key.cipher ./bin/server.key.rand ./bin/gs_plan_simulator.sh +./bin/pg_xlogdump +./bin/pagehack ./etc/kerberos/kadm5.acl ./etc/kerberos/kdc.conf ./etc/kerberos/krb5.conf diff --git a/build/script/utils/make_compile.sh b/build/script/utils/make_compile.sh index 6056eac1e..375958fbf 100644 --- a/build/script/utils/make_compile.sh +++ b/build/script/utils/make_compile.sh @@ -28,6 +28,9 @@ function read_gaussdb_version() PG_REG_TEST_ROOT="${ROOT_DIR}" ROACH_DIR="${ROOT_DIR}/distribute/bin/roach" MPPDB_DECODING_DIR="${ROOT_DIR}/contrib/mppdb_decoding" +XLOG_DUMP_DIR="${ROOT_DIR}/contrib/pg_xlogdump" +PAGE_HACK_DIR="${ROOT_DIR}/contrib/pagehack" + ################################### # get version number from globals.cpp @@ -259,6 +262,18 @@ function install_gaussdb() fi fi + cd "$XLOG_DUMP_DIR" + make clean >> "$LOG_FILE" 2>&1 + make -sj >> "$LOG_FILE" 2>&1 + make install -sj >> "$LOG_FILE" 2>&1 + echo "End make install xlog_dump" >> "$LOG_FILE" 2>&1 + + cd "$PAGE_HACK_DIR" + make clean >> "$LOG_FILE" 2>&1 + make -sj >> "$LOG_FILE" 2>&1 + make install -sj >> "$LOG_FILE" 2>&1 + echo "End make install pagehack" >> "$LOG_FILE" 2>&1 + chmod 444 ${BUILD_DIR}/bin/cluster_guc.conf dos2unix ${BUILD_DIR}/bin/cluster_guc.conf > /dev/null 2>&1 get_kernel_commitid diff --git a/build/script/x86_64_opengauss_list b/build/script/x86_64_opengauss_list index 5e2f16616..500129a89 100644 --- a/build/script/x86_64_opengauss_list +++ b/build/script/x86_64_opengauss_list @@ -45,6 +45,8 @@ ./bin/server.key.cipher ./bin/server.key.rand ./bin/gs_plan_simulator.sh +./bin/pg_xlogdump +./bin/pagehack ./etc/kerberos/kadm5.acl ./etc/kerberos/kdc.conf ./etc/kerberos/krb5.conf