remove set null in tsdbread
This commit is contained in:
parent
855a76813c
commit
1d3a2d47f1
|
@ -464,8 +464,9 @@ static int tsdbLoadBlockDataImpl(SReadH *pReadh, SBlock *pBlock, SDataCols *pDat
|
||||||
if (dcol != 0 && ccol >= pBlockData->numOfCols) {
|
if (dcol != 0 && ccol >= pBlockData->numOfCols) {
|
||||||
// Set current column as NULL and forward
|
// Set current column as NULL and forward
|
||||||
// TODO: tdAllocMemForCol may fail
|
// TODO: tdAllocMemForCol may fail
|
||||||
tdAllocMemForCol(pDataCol, pDataCols->maxPoints);
|
/*tdAllocMemForCol(pDataCol, pDataCols->maxPoints);*/
|
||||||
dataColSetNEleNull(pDataCol, pBlock->numOfRows);
|
/*dataColSetNEleNull(pDataCol, pBlock->numOfRows);*/
|
||||||
|
dataColReset(pDataCol);
|
||||||
dcol++;
|
dcol++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -506,8 +507,9 @@ static int tsdbLoadBlockDataImpl(SReadH *pReadh, SBlock *pBlock, SDataCols *pDat
|
||||||
} else {
|
} else {
|
||||||
// Set current column as NULL and forward
|
// Set current column as NULL and forward
|
||||||
// TODO: tdAllocMemForCol may fail
|
// TODO: tdAllocMemForCol may fail
|
||||||
tdAllocMemForCol(pDataCol, pDataCols->maxPoints);
|
/*tdAllocMemForCol(pDataCol, pDataCols->maxPoints);*/
|
||||||
dataColSetNEleNull(pDataCol, pBlock->numOfRows);
|
/*dataColSetNEleNull(pDataCol, pBlock->numOfRows);*/
|
||||||
|
dataColReset(pDataCol);
|
||||||
dcol++;
|
dcol++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -613,8 +615,9 @@ static int tsdbLoadBlockDataColsImpl(SReadH *pReadh, SBlock *pBlock, SDataCols *
|
||||||
|
|
||||||
if (pBlockCol == NULL) {
|
if (pBlockCol == NULL) {
|
||||||
// TODO: tdAllocMemForCol may fail
|
// TODO: tdAllocMemForCol may fail
|
||||||
tdAllocMemForCol(pDataCol, pDataCols->maxPoints);
|
/*tdAllocMemForCol(pDataCol, pDataCols->maxPoints);*/
|
||||||
dataColSetNEleNull(pDataCol, pBlock->numOfRows);
|
/*dataColSetNEleNull(pDataCol, pBlock->numOfRows);*/
|
||||||
|
dataColReset(pDataCol);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue