From 4dc1235d051d89a48fc9c50880a6a47ac69eb57f Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Thu, 29 Oct 2020 03:32:49 +0000 Subject: [PATCH] TD-1812 --- src/client/src/tscAsync.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/client/src/tscAsync.c b/src/client/src/tscAsync.c index c996bb2a76..64ba0dbf32 100644 --- a/src/client/src/tscAsync.c +++ b/src/client/src/tscAsync.c @@ -427,8 +427,11 @@ void tscTableMetaCallBack(void *param, TAOS_RES *res, int code) { } else { assert(code == TSDB_CODE_SUCCESS); } - - assert((tscGetNumOfTags(pTableMetaInfo->pTableMeta) != 0) && pSql->param != NULL); + // param already freed by other routine and pSql in tscCache when ctrl + c + if (atomic_load_ptr(&pSql->param) == NULL) { + return; + } + assert((tscGetNumOfTags(pTableMetaInfo->pTableMeta) != 0)); SRetrieveSupport *trs = (SRetrieveSupport *)pSql->param; SSqlObj * pParObj = trs->pParentSql; -- GitLab