a crash generated by dn3_mn1_replica_change.sim

This commit is contained in:
Shengliang Guan 2020-08-15 14:52:38 +08:00
parent 22cb8287b5
commit acdcd47243
1 changed files with 7 additions and 4 deletions

View File

@ -1795,19 +1795,22 @@ bool tsdbNextDataBlock(TsdbQueryHandleT* pHandle) {
if (pQueryHandle->checkFiles) {
bool exists = true;
int32_t code = getDataBlocksInFiles(pQueryHandle, &exists);
if (code != TSDB_CODE_SUCCESS) {
return code;
pQueryHandle->activeIndex = 0;
pQueryHandle->checkFiles = false;
return false;
}
if (exists) {
elapsedTime = taosGetTimestampUs() - stime;
pQueryHandle->cost.checkForNextTime += elapsedTime;
pQueryHandle->cost.checkForNextTime += (taosGetTimestampUs() - stime);
return exists;
}
pQueryHandle->activeIndex = 0;
pQueryHandle->checkFiles = false;
pQueryHandle->checkFiles = false;
}
// TODO: opt by consider the scan order