From d9aa3d519c81417f2ddbf3d813d3913a5282e1fa Mon Sep 17 00:00:00 2001 From: hjxilinx Date: Tue, 26 Nov 2019 21:34:18 +0800 Subject: [PATCH] add the config option in the taos.cfg file --- packaging/cfg/taos.cfg | 6 ++++++ src/system/detail/src/vnodeRead.c | 6 +----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packaging/cfg/taos.cfg b/packaging/cfg/taos.cfg index 1c96743381..9d61b0df68 100644 --- a/packaging/cfg/taos.cfg +++ b/packaging/cfg/taos.cfg @@ -58,6 +58,12 @@ # The server and client should have the same socket type. Otherwise, connect will fail. # sockettype udp +# The compressed rpc message, option: +# -1 (no compression) +# 0 (all message compressed), +# > 0 (rpc message body which larger than this value will be compressed) +# compressMsgSize -1 + # RPC re-try timer, millisecond # rpcTimer 300 diff --git a/src/system/detail/src/vnodeRead.c b/src/system/detail/src/vnodeRead.c index 0f9565a3b5..14b50acf45 100644 --- a/src/system/detail/src/vnodeRead.c +++ b/src/system/detail/src/vnodeRead.c @@ -483,13 +483,9 @@ void vnodeFreeQInfo(void *param, bool decQueryRef) { } tfree(pQuery->pGroupbyExpr); - dTrace("QInfo:%p vid:%d sid:%d meterId:%s, QInfo is freed", pQInfo, pObj->vnode, pObj->sid, pObj->meterId); - /* - * destory signature, in order to avoid the query process pass the object - * safety check - */ + //destroy signature, in order to avoid the query process pass the object safety check memset(pQInfo, 0, sizeof(SQInfo)); tfree(pQInfo); }