enh(query): optimize query perf.
This commit is contained in:
parent
a8703c7fc2
commit
3f0c93a623
|
@ -40,7 +40,7 @@ static int32_t tsdbOpenFile(const char *path, int32_t szPage, int32_t flag, STsd
|
|||
}
|
||||
pFD->szPage = szPage;
|
||||
pFD->pgno = 0;
|
||||
pFD->pBuf = taosMemoryCalloc(1, szPage);
|
||||
pFD->pBuf = taosMemoryMalloc(szPage);
|
||||
if (pFD->pBuf == NULL) {
|
||||
code = TSDB_CODE_OUT_OF_MEMORY;
|
||||
taosCloseFile(&pFD->pFD);
|
||||
|
|
Loading…
Reference in New Issue