sync refactor

This commit is contained in:
Minghao Li 2022-03-24 18:41:20 +08:00
parent b3ec7c8261
commit 61f227816d
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ SSyncRaftEntry* logStoreGetEntry(SSyncLogStore* pLogStore, SyncIndex index) {
int32_t logStoreTruncate(SSyncLogStore* pLogStore, SyncIndex fromIndex) {
SSyncLogStoreData* pData = pLogStore->data;
SWal* pWal = pData->pWal;
walRollback(pWal, fromIndex);
assert(walRollback(pWal, fromIndex) == 0);
return 0; // to avoid compiler error
}