[td-4372] refactor.
This commit is contained in:
parent
44b5fc4732
commit
ab6e36e950
|
@ -924,15 +924,7 @@ static int tsdbRemoveTableFromIndex(STsdbMeta *pMeta, STable *pTable) {
|
||||||
STable *pSTable = pTable->pSuper;
|
STable *pSTable = pTable->pSuper;
|
||||||
ASSERT(pSTable != NULL);
|
ASSERT(pSTable != NULL);
|
||||||
|
|
||||||
STSchema *pSchema = tsdbGetTableTagSchema(pTable);
|
char* key = getTagIndexKey(pTable);
|
||||||
STColumn *pCol = schemaColAt(pSchema, DEFAULT_TAG_INDEX_COLUMN);
|
|
||||||
|
|
||||||
char * key = tdGetKVRowValOfCol(pTable->tagVal, pCol->colId);
|
|
||||||
if (key == NULL) {
|
|
||||||
// treat the column as NULL if we cannot find it
|
|
||||||
key = getNullValue(pCol->type);
|
|
||||||
}
|
|
||||||
|
|
||||||
SArray *res = tSkipListGet(pSTable->pIndex, key);
|
SArray *res = tSkipListGet(pSTable->pIndex, key);
|
||||||
|
|
||||||
size_t size = taosArrayGetSize(res);
|
size_t size = taosArrayGetSize(res);
|
||||||
|
|
Loading…
Reference in New Issue