提交 eca97bf5 编写于 作者: B Benguang Zhao

enh: keep extra raft Logs before minimum match index

上级 21c18a4a
...@@ -301,7 +301,7 @@ int32_t syncBeginSnapshot(int64_t rid, int64_t lastApplyIndex) { ...@@ -301,7 +301,7 @@ int32_t syncBeginSnapshot(int64_t rid, int64_t lastApplyIndex) {
syncNodeRelease(pSyncNode); syncNodeRelease(pSyncNode);
return 0; return 0;
} }
logRetention = TMAX(logRetention, lastApplyIndex - pSyncNode->minMatchIndex); logRetention = TMAX(logRetention, lastApplyIndex - pSyncNode->minMatchIndex + logRetention);
} }
_DEL_WAL: _DEL_WAL:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册