fix:[TD-28032]concat subtable and hash val as new subtable name to avoid data from multi time line write to one time line
This commit is contained in:
parent
9ba2f71487
commit
ab262550d1
|
@ -717,6 +717,7 @@ int32_t setDstTableDataUid(SVnode* pVnode, SStreamTask* pTask, SSDataBlock* pDat
|
||||||
|
|
||||||
if (pTableData->pCreateTbReq == NULL) {
|
if (pTableData->pCreateTbReq == NULL) {
|
||||||
tqError("s-task:%s failed to build auto create table req, code:%s", id, tstrerror(terrno));
|
tqError("s-task:%s failed to build auto create table req, code:%s", id, tstrerror(terrno));
|
||||||
|
taosMemoryFree(pTableSinkInfo);
|
||||||
code = terrno;
|
code = terrno;
|
||||||
goto END;
|
goto END;
|
||||||
}
|
}
|
||||||
|
@ -727,6 +728,7 @@ int32_t setDstTableDataUid(SVnode* pVnode, SStreamTask* pTask, SSDataBlock* pDat
|
||||||
bool isValid = isValidDstChildTable(&mr, vgId, dstTableName, suid);
|
bool isValid = isValidDstChildTable(&mr, vgId, dstTableName, suid);
|
||||||
if (!isValid) {
|
if (!isValid) {
|
||||||
metaReaderClear(&mr);
|
metaReaderClear(&mr);
|
||||||
|
taosMemoryFree(pTableSinkInfo);
|
||||||
tqError("s-task:%s vgId:%d table:%s already exists, but not child table, stream results is discarded", id, vgId,
|
tqError("s-task:%s vgId:%d table:%s already exists, but not child table, stream results is discarded", id, vgId,
|
||||||
dstTableName);
|
dstTableName);
|
||||||
code = terrno;
|
code = terrno;
|
||||||
|
@ -745,7 +747,6 @@ END:
|
||||||
if(pTask->ver >= SSTREAM_TASK_SUBTABLE_CHANGED_VER){
|
if(pTask->ver >= SSTREAM_TASK_SUBTABLE_CHANGED_VER){
|
||||||
taosMemoryFree(dstTableName);
|
taosMemoryFree(dstTableName);
|
||||||
}
|
}
|
||||||
taosMemoryFree(pTableSinkInfo);
|
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue