From 842098942b22cbabbccd540fb4e6693bd244ac85 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Wed, 11 Aug 2021 17:48:56 +0800 Subject: [PATCH] [td-225]update the log --- src/client/src/tscServer.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index 11c458e9bc..87289f7728 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -525,6 +525,7 @@ static void doProcessMsgFromServer(SSchedMsg* pSchedMsg) { } void tscProcessMsgFromServer(SRpcMsg *rpcMsg, SRpcEpSet *pEpSet) { + int64_t st = taosGetTimestampUs(); SSchedMsg schedMsg = {0}; schedMsg.fp = doProcessMsgFromServer; @@ -543,6 +544,11 @@ void tscProcessMsgFromServer(SRpcMsg *rpcMsg, SRpcEpSet *pEpSet) { schedMsg.msg = NULL; taosScheduleTask(tscQhandle, &schedMsg); + + int64_t et = taosGetTimestampUs(); + if (et - st > 100) { + tscDebug("add message to task queue, elapsed time:%"PRId64, et - st); + } } int doBuildAndSendMsg(SSqlObj *pSql) { -- GitLab