fix:core dump in tsdbreader is null when tsdbreader is closed by subscribe msg and current offset equal to saved

This commit is contained in:
wangmm0220 2023-05-19 22:52:58 +08:00
parent 1ddbdad33c
commit f8de38e532
1 changed files with 1 additions and 1 deletions

View File

@ -1080,7 +1080,7 @@ int32_t qStreamPrepareScan(qTaskInfo_t tinfo, STqOffsetVal* pOffset, int8_t subT
const char* id = GET_TASKID(pTaskInfo);
// if pOffset equal to current offset, means continue consume
if (tOffsetEqual(pOffset, &pTaskInfo->streamInfo.currentOffset)) {
if (tOffsetEqual(pOffset, &pTaskInfo->streamInfo.currentOffset) && pOffset->type != TMQ_OFFSET__SNAPSHOT_DATA) {
return 0;
}