fix:asan error

This commit is contained in:
54liuyao 2023-02-27 18:59:38 +08:00
parent b93fbf4f4c
commit abbc69a2ed
2 changed files with 17 additions and 1 deletions

View File

@ -1223,7 +1223,7 @@ static int32_t mndRetrieveStreamTask(SRpcMsg *pReq, SShowObj *pShow, SSDataBlock
// node id
pColInfo = taosArrayGet(pBlock->pDataBlock, cols++);
int32_t nodeId = TMAX(pTask->nodeId, 0);
int64_t nodeId = TMAX(pTask->nodeId, 0);
colDataSetVal(pColInfo, numOfRows, (const char *)&nodeId, false);
// level

View File

@ -887,4 +887,20 @@ if $rows != 1 then
goto loop19
endi
print select * from information_schema.ins_stream_tasks;
sql select * from information_schema.ins_stream_tasks;
if $rows == 0 then
print =====rows=$rows
return -1
endi
print select * from information_schema.ins_streams;
sql select * from information_schema.ins_streams;
if $rows == 0 then
print =====rows=$rows
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT