fix: fix filter error result
This commit is contained in:
parent
0f803fca10
commit
0fd0c64157
|
@ -1302,14 +1302,13 @@ int32_t metaFilterTableIds(SMeta *pMeta, SMetaFltParam *param, SArray *pUids) {
|
|||
if (valid < 0) {
|
||||
break;
|
||||
}
|
||||
if (count >= TRY_ERROR_LIMIT) {
|
||||
break;
|
||||
}
|
||||
|
||||
STagIdxKey *p = entryKey;
|
||||
if (p == NULL) break;
|
||||
|
||||
if (count >= TRY_ERROR_LIMIT) {
|
||||
if (p->type != pCursor->type || p->suid != pCursor->suid || p->cid != pCursor->cid) {
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
if (p->type != pCursor->type || p->suid != pCursor->suid || p->cid != pCursor->cid) {
|
||||
count++;
|
||||
valid = param->reverse ? tdbTbcMoveToPrev(pCursor->pCur) : tdbTbcMoveToNext(pCursor->pCur);
|
||||
|
@ -1319,7 +1318,7 @@ int32_t metaFilterTableIds(SMeta *pMeta, SMetaFltParam *param, SArray *pUids) {
|
|||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int32_t cmp = (*param->filterFunc)(p->data, pKey->data, pKey->type);
|
||||
if (cmp == 0) {
|
||||
// match
|
||||
|
@ -1331,13 +1330,8 @@ int32_t metaFilterTableIds(SMeta *pMeta, SMetaFltParam *param, SArray *pUids) {
|
|||
}
|
||||
taosArrayPush(pUids, &tuid);
|
||||
} else {
|
||||
if (count >= TRY_ERROR_LIMIT) {
|
||||
if (param->equal == false) {
|
||||
break;
|
||||
// opt later
|
||||
}
|
||||
}
|
||||
}
|
||||
count++;
|
||||
valid = param->reverse ? tdbTbcMoveToPrev(pCursor->pCur) : tdbTbcMoveToNext(pCursor->pCur);
|
||||
if (valid < 0) {
|
||||
break;
|
||||
|
|
|
@ -7,7 +7,7 @@ print ======== step0
|
|||
$dbPrefix = ta_3_db
|
||||
$tbPrefix = ta_3_tb
|
||||
$mtPrefix = ta_3_mt
|
||||
$tbNum = 10
|
||||
$tbNum = 101
|
||||
$rowNum = 20
|
||||
$totalNum = 200
|
||||
|
||||
|
|
Loading…
Reference in New Issue