提交 44b5fc47 编写于 作者: H Haojun Liao

[td-4372]<fix>: fix the taosd server crash caused by dropping a child table,...

[td-4372]<fix>: fix the taosd server crash caused by dropping a child table, of which the indexed tag value is null.
上级 f0a7a533
......@@ -928,6 +928,11 @@ static int tsdbRemoveTableFromIndex(STsdbMeta *pMeta, STable *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);
size_t size = taosArrayGetSize(res);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册