提交 8905096b 编写于 作者: S slzhou

fix: typo error when find long query

上级 d61a86e6
......@@ -642,7 +642,7 @@ static int compareLongQuery(const void* p1, const void* p2) {
}
// callback for taosCacheRefresh
static void cbFoundItem(void* handle, void* param1) {
static void cbFoundLongQuery(void* handle, void* param1) {
SQInfo * qInfo = *(SQInfo**) handle;
if(qInfo == NULL) return ;
SArray* qids = (SArray*) param1;
......@@ -654,7 +654,7 @@ static void cbFoundItem(void* handle, void* param1) {
SMemTable* imem = qInfo->query.memRef.snapshot.imem;
if(mem == NULL || T_REF_VAL_GET(mem) == 0)
usedMem = false;
if(imem == NULL || T_REF_VAL_GET(mem) == 0)
if(imem == NULL || T_REF_VAL_GET(imem) == 0)
usedIMem = false ;
if(!usedMem && !usedIMem)
......@@ -675,7 +675,7 @@ void* qObtainLongQuery(void* param){
SArray* qids = taosArrayInit(4, sizeof(int64_t*));
if(qids == NULL) return NULL;
// Get each item
taosCacheRefresh(qMgmt->qinfoPool, cbFoundItem, qids);
taosCacheRefresh(qMgmt->qinfoPool, cbFoundLongQuery, qids);
size_t cnt = taosArrayGetSize(qids);
if(cnt == 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册