Merge branch 'enh/tsdb_optimize' of https://github.com/taosdata/TDengine into enh/tsdb_optimize
This commit is contained in:
commit
ccc8faf3ee
|
@ -355,7 +355,9 @@ int32_t tLDataIterOpen2(struct SLDataIter *pIter, SSttFileReader *pReader, int32
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
||||||
void tLDataIterClose(SLDataIter *pIter) { /*taosMemoryFree(pIter); */}
|
void tLDataIterClose2(SLDataIter *pIter) {
|
||||||
|
tsdbSttFileReaderClose(&pIter->pReader);
|
||||||
|
}
|
||||||
|
|
||||||
void tLDataIterNextBlock(SLDataIter *pIter, const char *idStr) {
|
void tLDataIterNextBlock(SLDataIter *pIter, const char *idStr) {
|
||||||
int32_t step = pIter->backward ? -1 : 1;
|
int32_t step = pIter->backward ? -1 : 1;
|
||||||
|
|
|
@ -4746,6 +4746,7 @@ void tsdbReaderClose2(STsdbReader* pReader) {
|
||||||
if (pReader->status.pTableMap != NULL) {
|
if (pReader->status.pTableMap != NULL) {
|
||||||
destroyAllBlockScanInfo(pReader->status.pTableMap);
|
destroyAllBlockScanInfo(pReader->status.pTableMap);
|
||||||
clearBlockScanInfoBuf(&pReader->blockInfoBuf);
|
clearBlockScanInfoBuf(&pReader->blockInfoBuf);
|
||||||
|
pReader->status.pTableMap = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pReader->pFileReader != NULL) {
|
if (pReader->pFileReader != NULL) {
|
||||||
|
|
Loading…
Reference in New Issue