fix: core dump without resetTableListIndex

This commit is contained in:
slzhou 2023-11-28 14:50:50 +08:00
parent 89cd2b6f17
commit 4fb0f83f07
2 changed files with 3 additions and 2 deletions

View File

@ -166,7 +166,7 @@ typedef struct {
// clang-format off // clang-format off
/*-------------------------------------------------new api format---------------------------------------------------*/ /*-------------------------------------------------new api format---------------------------------------------------*/
typedef enum { typedef enum {
TSD_READER_NOTIFY_DURATION TSD_READER_NOTIFY_DURATION_START
} ETsdReaderNotifyType; } ETsdReaderNotifyType;
typedef union { typedef union {

View File

@ -4369,8 +4369,9 @@ static int32_t doTsdbNextDataBlockDurationOrder(STsdbReader* pReader) {
if (pReader->notifyFn) { if (pReader->notifyFn) {
STsdReaderNotifyInfo info = {0}; STsdReaderNotifyInfo info = {0};
info.duration.fileSetId = fid; info.duration.fileSetId = fid;
pReader->notifyFn(TSD_READER_NOTIFY_DURATION, &info, pReader->notifyParam); pReader->notifyFn(TSD_READER_NOTIFY_DURATION_START, &info, pReader->notifyParam);
} }
resetTableListIndex(pStatus);
} }
} }