enh(query): optimize query perf.

This commit is contained in:
Haojun Liao 2022-11-30 14:53:25 +08:00
parent a8703c7fc2
commit 3f0c93a623
1 changed files with 1 additions and 1 deletions

View File

@ -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);