fix(tsdb): not copy range key if no pk exists.
This commit is contained in:
parent
1b30d214eb
commit
e7ed8fbaa6
|
@ -502,9 +502,11 @@ static void setSttInfoForCurrentTable(SSttBlockLoadInfo *pLoadInfo, uint64_t uid
|
|||
|
||||
*numOfRows += *(int64_t *)taosArrayGet(pLoadInfo->info.pCount, index);
|
||||
|
||||
if (pRange->skey.numOfPKs > 0) {
|
||||
memcpy(&pRange->skey.pks[0], taosArrayGet(pLoadInfo->info.pFirstKey, index), sizeof(SValue));
|
||||
memcpy(&pRange->ekey.pks[0], taosArrayGet(pLoadInfo->info.pLastKey, index), sizeof(SValue));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int32_t tLDataIterOpen2(SLDataIter *pIter, SSttFileReader *pSttFileReader, int32_t cid, int8_t backward,
|
||||
|
|
Loading…
Reference in New Issue