refactor: do some internal refactor.
This commit is contained in:
parent
66254c96a7
commit
5307f15766
|
@ -4242,13 +4242,11 @@ int32_t tsdbReaderOpen2(void* pVnode, SQueryTableDataCond* pCond, void* pTableLi
|
|||
SVnodeCfg* pConf = &(((SVnode*)pVnode)->config);
|
||||
|
||||
int32_t capacity = pConf->tsdbCfg.maxRows;
|
||||
capacity = 8192; // for debug purpose
|
||||
if (pResBlock != NULL) {
|
||||
blockDataEnsureCapacity(pResBlock, capacity);
|
||||
}
|
||||
|
||||
// for debug purpose
|
||||
// capacity = 7;
|
||||
|
||||
int32_t code = tsdbReaderCreate(pVnode, pCond, ppReader, capacity, pResBlock, idstr);
|
||||
if (code != TSDB_CODE_SUCCESS) {
|
||||
goto _err;
|
||||
|
|
|
@ -83,7 +83,7 @@ static void toDataCacheEntry(SDataDispatchHandle* pHandle, const SInputData* pIn
|
|||
// ASSERT(pEntry->numOfCols == *(int32_t*)(pEntry->data + 8 + 4));
|
||||
|
||||
{
|
||||
if (pBuf->allocSize > 8192) {
|
||||
if (/*pBuf->allocSize > 8192*/ 0) {
|
||||
char* p = taosMemoryMalloc(pBuf->allocSize);
|
||||
int32_t dataLen = blockEncode(pInput->pData, p, numOfCols);
|
||||
|
||||
|
|
Loading…
Reference in New Issue