refactor: enable continue query when the buffer of sink node is lower or empty.

This commit is contained in:
Haojun Liao 2022-11-23 13:59:38 +08:00
parent f92c1d4271
commit c623336b6e
1 changed files with 3 additions and 1 deletions

View File

@ -138,7 +138,9 @@ static int32_t putDataBlock(SDataSinkHandle* pHandle, const SInputData* pInput,
toDataCacheEntry(pDispatcher, pInput, pBuf);
taosWriteQitem(pDispatcher->pDataBlocks, pBuf);
*pContinue = (DS_BUF_LOW == updateStatus(pDispatcher) ? true : false);
int32_t status = updateStatus(pDispatcher);
*pContinue = (status == DS_BUF_LOW || status == DS_BUF_EMPTY);
return TSDB_CODE_SUCCESS;
}