From d787e3d6d71bc929c6965752a7f085cd50baacfe Mon Sep 17 00:00:00 2001 From: hehechen Date: Tue, 9 Nov 2021 22:31:41 +0800 Subject: [PATCH] fix issue --- dbms/src/Core/Defines.h | 2 +- dbms/src/Server/Server.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dbms/src/Core/Defines.h b/dbms/src/Core/Defines.h index 479d9921ef5..b593860705c 100644 --- a/dbms/src/Core/Defines.h +++ b/dbms/src/Core/Defines.h @@ -88,7 +88,7 @@ #define PLATFORM_NOT_SUPPORTED "The only supported platforms are x86_64 and AArch64 (work in progress)" -#define DEFAULT_MARK_CACHE_SIZE 5368709120 +#define DEFAULT_MARK_CACHE_SIZE (5ULL * 1024 * 1024 * 1024) #define DEFAULT_METRICS_PORT 8234 diff --git a/dbms/src/Server/Server.cpp b/dbms/src/Server/Server.cpp index aa05539af5d..78dc7a71dab 100644 --- a/dbms/src/Server/Server.cpp +++ b/dbms/src/Server/Server.cpp @@ -216,12 +216,12 @@ struct TiFlashProxyConfig std::unordered_map val_map; bool is_proxy_runnable = false; - const char * engine_store_version = "engine-version"; - const char * engine_store_git_hash = "engine-git-hash"; - const char * engine_store_address = "engine-addr"; - const char * engine_store_advertise_address = "advertise-engine-addr"; - const char * pd_endpoints = "pd-endpoints"; - const char * addr = "addr"; + const String engine_store_version = "engine-version"; + const String engine_store_git_hash = "engine-git-hash"; + const String engine_store_address = "engine-addr"; + const String engine_store_advertise_address = "advertise-engine-addr"; + const String pd_endpoints = "pd-endpoints"; + const String addr = "addr"; explicit TiFlashProxyConfig(Poco::Util::LayeredConfiguration & config) {