refactor(sync): modify config file len

This commit is contained in:
Minghao Li 2022-08-22 14:25:36 +08:00
parent f1391962a0
commit dd212b5dbb
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ SRaftCfg *raftCfgOpen(const char *path) {
taosLSeekFile(pCfg->pFile, 0, SEEK_SET);
char buf[1024] = {0};
char buf[CONFIG_FILE_LEN] = {0};
int len = taosReadFile(pCfg->pFile, buf, sizeof(buf));
ASSERT(len > 0);