[TD-3766]<fix>: fix fsync alter calculation

This commit is contained in:
Minglei Jin 2021-04-14 14:54:06 +08:00
parent 640062a53d
commit 3cb71e2dfc
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ int32_t walAlter(void *handle, SWalCfg *pCfg) {
pWal->level = pCfg->walLevel;
pWal->fsyncPeriod = pCfg->fsyncPeriod;
pWal->fsyncSeq = pCfg->fsyncPeriod % 1000;
pWal->fsyncSeq = pCfg->fsyncPeriod / 1000;
if (pWal->fsyncSeq <= 0) pWal->fsyncSeq = 1;
return TSDB_CODE_SUCCESS;