fix(stream): add an assert.

This commit is contained in:
Haojun Liao 2024-03-03 16:46:13 +08:00
parent 5554362399
commit 550d0fe5ae
1 changed files with 2 additions and 0 deletions

View File

@ -740,6 +740,8 @@ int32_t streamTaskSendCheckpointSourceRsp(SStreamTask* pTask) {
int32_t streamAddBlockIntoDispatchMsg(const SSDataBlock* pBlock, SStreamDispatchReq* pReq) {
int32_t dataStrLen = sizeof(SRetrieveTableRsp) + blockGetEncodeSize(pBlock);
ASSERT(dataStrLen > 0);
void* buf = taosMemoryCalloc(1, dataStrLen);
if (buf == NULL) return -1;