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);
|
int64_t index = (int64_t)((ts - pInfo->minTS) / pInfo->interval);
|
||||||
if (index < 0) {
|
if (index < 0) {
|
||||||
code = TSDB_CODE_FAILED;
|
(*ppSBf) = NULL;
|
||||||
QUERY_CHECK_CODE(code, lino, _end);
|
goto _end;
|
||||||
}
|
}
|
||||||
if (index >= pInfo->numSBFs) {
|
if (index >= pInfo->numSBFs) {
|
||||||
uint64_t count = index + 1 - 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);
|
QUERY_CHECK_CODE(code, lino, _error);
|
||||||
}
|
}
|
||||||
if (size == 0) {
|
if (size == 0) {
|
||||||
code = TSDB_CODE_FAILED;
|
(*ppSBf) = NULL;
|
||||||
QUERY_CHECK_CODE(code, lino, _error);
|
tScalableBfDestroy(pSBf);
|
||||||
|
goto _error;
|
||||||
}
|
}
|
||||||
pSBf->bfArray = taosArrayInit(size * 2, POINTER_BYTES);
|
pSBf->bfArray = taosArrayInit(size * 2, POINTER_BYTES);
|
||||||
if (!pSBf->bfArray) {
|
if (!pSBf->bfArray) {
|
||||||
|
|
Loading…
Reference in New Issue