adj operator res
This commit is contained in:
parent
6e70da62fb
commit
fd6c1ecf37
|
@ -241,8 +241,8 @@ static int32_t getSBf(SUpdateInfo* pInfo, TSKEY ts, SScalableBf** ppSBf) {
|
|||
}
|
||||
int64_t index = (int64_t)((ts - pInfo->minTS) / pInfo->interval);
|
||||
if (index < 0) {
|
||||
code = TSDB_CODE_FAILED;
|
||||
QUERY_CHECK_CODE(code, lino, _end);
|
||||
(*ppSBf) = NULL;
|
||||
goto _end;
|
||||
}
|
||||
if (index >= pInfo->numSBFs) {
|
||||
uint64_t count = index + 1 - pInfo->numSBFs;
|
||||
|
|
|
@ -221,8 +221,9 @@ int32_t tScalableBfDecode(SDecoder* pDecoder, SScalableBf** ppSBf) {
|
|||
QUERY_CHECK_CODE(code, lino, _error);
|
||||
}
|
||||
if (size == 0) {
|
||||
code = TSDB_CODE_FAILED;
|
||||
QUERY_CHECK_CODE(code, lino, _error);
|
||||
(*ppSBf) = NULL;
|
||||
tScalableBfDestroy(pSBf);
|
||||
goto _error;
|
||||
}
|
||||
pSBf->bfArray = taosArrayInit(size * 2, POINTER_BYTES);
|
||||
if (!pSBf->bfArray) {
|
||||
|
|
Loading…
Reference in New Issue