feat(tsdb): comp use cfg from params

This commit is contained in:
Cary Xu 2022-05-12 18:46:20 +08:00
parent d66bb65171
commit 910436a564
1 changed files with 1 additions and 0 deletions

View File

@ -144,6 +144,7 @@ static void vmGenerateVnodeCfg(SCreateVnodeReq *pCreate, SVnodeCfg *pCfg) {
pCfg->szCache = pCreate->pages;
pCfg->szBuf = pCreate->buffer * 1024 * 1024;
pCfg->isWeak = true;
pCfg->tsdbCfg.compression = pCreate->compression;
pCfg->tsdbCfg.precision = pCreate->precision;
pCfg->tsdbCfg.days = pCreate->daysPerFile;
pCfg->tsdbCfg.keep0 = pCreate->daysToKeep0;