未验证 提交 82c799d7 编写于 作者: S Shengliang Guan 提交者: GitHub

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

refactor(sync): modify config file len
...@@ -171,7 +171,7 @@ SRaftCfg *raftCfgOpen(const char *path) { ...@@ -171,7 +171,7 @@ SRaftCfg *raftCfgOpen(const char *path) {
taosLSeekFile(pCfg->pFile, 0, SEEK_SET); taosLSeekFile(pCfg->pFile, 0, SEEK_SET);
char buf[1024] = {0}; char buf[CONFIG_FILE_LEN] = {0};
int len = taosReadFile(pCfg->pFile, buf, sizeof(buf)); int len = taosReadFile(pCfg->pFile, buf, sizeof(buf));
ASSERT(len > 0); ASSERT(len > 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册