fix: avoid assertion on changing num of spaces in JSON files raft_config.json and raft_store.json

This commit is contained in:
Benguang Zhao 2022-09-23 19:17:39 +08:00
parent 983f4797f2
commit b10bc2ed5b
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);