From c7fb2d2d1bdf7137a8221e0af96d0604bc7ba60e Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Fri, 17 Sep 2021 13:36:02 +0800 Subject: [PATCH] fix compile error --- src/common/src/tglobal.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/common/src/tglobal.c b/src/common/src/tglobal.c index f25b70a9e3..876eb4fa92 100644 --- a/src/common/src/tglobal.c +++ b/src/common/src/tglobal.c @@ -56,7 +56,6 @@ int32_t tsRpcMaxTime = 600; // seconds; int32_t tsRpcForceTcp = 0; //disable this, means query, show command use udp protocol as default int32_t tsMaxShellConns = 50000; int32_t tsMaxConnections = 5000; -int32_t tsRpcForceTcp = 0; //disable this, means query, show command use udp protocol as default int32_t tsShellActivityTimer = 3; // second float tsNumOfThreadsPerCore = 1.0f; int32_t tsNumOfCommitThreads = 4; @@ -664,16 +663,6 @@ static void doInitGlobalConfig(void) { cfg.unitType = TAOS_CFG_UTYPE_MS; taosInitConfigOption(cfg); - cfg.option = "rpcForceTcp"; - cfg.ptr = &tsRpcForceTcp; - cfg.valType = TAOS_CFG_VTYPE_INT32; - cfg.cfgType = TSDB_CFG_CTYPE_B_CONFIG | TSDB_CFG_CTYPE_B_CLIENT; - cfg.minValue = 0; - cfg.maxValue = 1; - cfg.ptrLength = 0; - cfg.unitType = TAOS_CFG_UTYPE_NONE; - taosInitConfigOption(cfg); - cfg.option = "rpcMaxTime"; cfg.ptr = &tsRpcMaxTime; cfg.valType = TAOS_CFG_VTYPE_INT32; -- GitLab