提交 ce15900b 编写于 作者: H hjxilinx

fix taosd crashed when handling the inmemory data query. #1283

上级 05bfbe7e
......@@ -1148,10 +1148,11 @@ SCacheBlock *getCacheDataBlock(SMeterObj *pMeterObj, SQueryRuntimeEnv *pRuntimeE
SCacheBlock *pNewBlock = &pRuntimeEnv->cacheBlock;
// the commit data points will be ignored
int32_t offset = 0;
int32_t numOfPoints = pNewBlock->numOfPoints;
if (pQuery->firstSlot == pQuery->commitSlot) {
// the commit data points will be ignored
if (slot == pQuery->commitSlot) {
assert(pQuery->commitPoint >= 0 && pQuery->commitPoint <= pNewBlock->numOfPoints);
offset = pQuery->commitPoint;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册