提交 bec6cdf7 编写于 作者: wmmhello's avatar wmmhello

fix:clear hashmap if rerun schemaless

上级 4f949213
......@@ -1120,7 +1120,7 @@ SSmlHandle *smlBuildSmlInfo(TAOS *taos) {
info->maxTagKVs = taosArrayInit(8, sizeof(SSmlKv));
info->preLineColKV = taosArrayInit(8, sizeof(SSmlKv));
if (NULL == info->pVgHash) {
if (NULL == info->pVgHash || NULL == info->childTables || NULL == info->superTables) {
uError("create SSmlHandle failed");
goto cleanup;
}
......@@ -1299,6 +1299,9 @@ int32_t smlClearForRerun(SSmlHandle *info) {
oneSTable = (SSmlSTableMeta **)taosHashIterate(info->superTables, oneSTable);
}
taosHashClear(info->childTables);
taosHashClear(info->superTables);
if (!info->dataFormat) {
if (unlikely(info->lines != NULL)) {
uError("SML:0x%" PRIx64 " info->lines != NULL", info->id);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册