Merge pull request #16284 from taosdata/feature/3.0_mhli

refactor(sync): modify config file len
This commit is contained in:
Shengliang Guan 2022-08-22 15:10:29 +08:00 committed by GitHub
commit 82c799d7c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);