Merge pull request #16284 from taosdata/feature/3.0_mhli
refactor(sync): modify config file len
This commit is contained in:
commit
82c799d7c0
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue