fix: default value of tsdbPageSize

This commit is contained in:
kailixu 2022-12-16 18:28:10 +08:00
parent 728cbbac5e
commit 96bfe146d5
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ int vnodeDecodeConfig(const SJson *pJson, void *pObj) {
}
tjsonGetNumberValue(pJson, "tsdbPageSize", pCfg->tsdbPageSize, code);
if (code < 0 || pCfg->tsdbPageSize < TSDB_MIN_PAGESIZE_PER_VNODE) {
if (code < 0 || pCfg->tsdbPageSize < TSDB_MIN_PAGESIZE_PER_VNODE * 1024) {
pCfg->tsdbPageSize = TSDB_DEFAULT_TSDB_PAGESIZE * 1024;
}