fix compile error
This commit is contained in:
parent
60d1df0e25
commit
a02b35ed86
|
@ -40,13 +40,13 @@ SStreamQueue* streamQueueOpen(int64_t cap) {
|
||||||
return pQueue;
|
return pQueue;
|
||||||
}
|
}
|
||||||
|
|
||||||
void streamQueueClose(SStreamQueue* pQueue) {
|
// void streamQueueClose(SStreamQueue* pQueue) {
|
||||||
streamQueueCleanup(pQueue);
|
// streamQueueCleanup(pQueue);
|
||||||
|
|
||||||
taosFreeQall(pQueue->qall);
|
// taosFreeQall(pQueue->qall);
|
||||||
taosCloseQueue(pQueue->queue);
|
// taosCloseQueue(pQueue->queue);
|
||||||
taosMemoryFree(pQueue);
|
// taosMemoryFree(pQueue);
|
||||||
}
|
// }
|
||||||
|
|
||||||
void streamQueueClose(SStreamQueue* pQueue, int32_t taskId) {
|
void streamQueueClose(SStreamQueue* pQueue, int32_t taskId) {
|
||||||
qDebug("s-task:0x%x free the queue:%p, items in queue:%d", taskId, pQueue->queue, taosQueueItemSize(pQueue->queue));
|
qDebug("s-task:0x%x free the queue:%p, items in queue:%d", taskId, pQueue->queue, taosQueueItemSize(pQueue->queue));
|
||||||
|
@ -119,7 +119,6 @@ SStreamQueueRes streamQueueGetRes(SStreamQueue1* pQueue) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// todo refactor:
|
// todo refactor:
|
||||||
// read data from input queue
|
// read data from input queue
|
||||||
typedef struct SQueueReader {
|
typedef struct SQueueReader {
|
||||||
|
@ -226,7 +225,6 @@ int32_t extractBlocksFromInputQ(SStreamTask* pTask, SStreamQueueItem** pInput, i
|
||||||
if (qItem->type == STREAM_INPUT__CHECKPOINT || qItem->type == STREAM_INPUT__CHECKPOINT_TRIGGER ||
|
if (qItem->type == STREAM_INPUT__CHECKPOINT || qItem->type == STREAM_INPUT__CHECKPOINT_TRIGGER ||
|
||||||
qItem->type == STREAM_INPUT__TRANS_STATE) {
|
qItem->type == STREAM_INPUT__TRANS_STATE) {
|
||||||
if (*pInput == NULL) {
|
if (*pInput == NULL) {
|
||||||
|
|
||||||
char* p = NULL;
|
char* p = NULL;
|
||||||
if (qItem->type == STREAM_INPUT__CHECKPOINT) {
|
if (qItem->type == STREAM_INPUT__CHECKPOINT) {
|
||||||
p = "checkpoint";
|
p = "checkpoint";
|
||||||
|
@ -242,7 +240,8 @@ int32_t extractBlocksFromInputQ(SStreamTask* pTask, SStreamQueueItem** pInput, i
|
||||||
return TSDB_CODE_SUCCESS;
|
return TSDB_CODE_SUCCESS;
|
||||||
} else {
|
} else {
|
||||||
// previous existed blocks needs to be handle, before handle the checkpoint msg block
|
// previous existed blocks needs to be handle, before handle the checkpoint msg block
|
||||||
qDebug("s-task:%s checkpoint/transtate msg extracted, handle previous blocks, numOfBlocks:%d", id, *numOfBlocks);
|
qDebug("s-task:%s checkpoint/transtate msg extracted, handle previous blocks, numOfBlocks:%d", id,
|
||||||
|
*numOfBlocks);
|
||||||
streamQueueProcessFail(pTask->inputQueue);
|
streamQueueProcessFail(pTask->inputQueue);
|
||||||
return TSDB_CODE_SUCCESS;
|
return TSDB_CODE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue