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

Merge pull request #17042 from taosdata/FIX/TD-19226-3.0

fix: avoid assertion on changing num of spaces in JSON files raft_config.json and raft_store.json
......@@ -46,7 +46,7 @@ SRaftStore *raftStoreOpen(const char *path) {
ASSERT(pRaftStore->pFile != NULL);
int len = taosReadFile(pRaftStore->pFile, storeBuf, RAFT_STORE_BLOCK_SIZE);
ASSERT(len == RAFT_STORE_BLOCK_SIZE);
ASSERT(len > 0);
ret = raftStoreDeserialize(pRaftStore, storeBuf, len);
ASSERT(ret == 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册