Merge pull request #23180 from taosdata/fix/TS-4121-main

fix(tsdb/cache reader): reset current fileset in cache reader
This commit is contained in:
Hongze Cheng 2023-10-09 20:46:33 -05:00 committed by GitHub
commit 1b559a0254
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -415,6 +415,9 @@ int32_t tsdbRetrieveCacheRows(void* pReader, SSDataBlock* pResBlock, const int32
_end:
tsdbUntakeReadSnap2((STsdbReader*)pr, pr->pReadSnap, true);
if (pr->pCurFileSet) {
pr->pCurFileSet = NULL;
}
taosThreadMutexUnlock(&pr->readerMutex);