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:
Shengliang Guan 2022-09-27 09:33:41 +08:00 committed by GitHub
commit f16029ad78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);