提交 dbf7d01a 编写于 作者: H Haojun Liao

fix(query): set the correct uid.

上级 cbe91fd4
......@@ -115,7 +115,13 @@ static SBlockData* loadLastBlock(SLDataIter *pIter, const char* idStr) {
int64_t st = taosGetTimestampUs();
SBlockData* pBlock = &pInfo->blockData[pInfo->currentLoadBlockIndex];
TABLEID id = {.suid = pIter->pSttBlk->suid, .uid = 0};
TABLEID id = {0};
if (pIter->pSttBlk->suid != 0) {
id.suid = pIter->pSttBlk->suid;
} else {
id.uid = pIter->uid;
}
tBlockDataInit(pBlock, &id, pInfo->pSchema, pInfo->colIds, pInfo->numOfCols);
code = tsdbReadSttBlock(pIter->pReader, pIter->iStt, pIter->pSttBlk, pBlock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册