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
This commit is contained in:
commit
f16029ad78
|
@ -46,7 +46,7 @@ SRaftStore *raftStoreOpen(const char *path) {
|
||||||
ASSERT(pRaftStore->pFile != NULL);
|
ASSERT(pRaftStore->pFile != NULL);
|
||||||
|
|
||||||
int len = taosReadFile(pRaftStore->pFile, storeBuf, RAFT_STORE_BLOCK_SIZE);
|
int len = taosReadFile(pRaftStore->pFile, storeBuf, RAFT_STORE_BLOCK_SIZE);
|
||||||
ASSERT(len == RAFT_STORE_BLOCK_SIZE);
|
ASSERT(len > 0);
|
||||||
|
|
||||||
ret = raftStoreDeserialize(pRaftStore, storeBuf, len);
|
ret = raftStoreDeserialize(pRaftStore, storeBuf, len);
|
||||||
ASSERT(ret == 0);
|
ASSERT(ret == 0);
|
||||||
|
|
Loading…
Reference in New Issue