enh: keep extra raft Logs before minimum match index
This commit is contained in:
parent
21c18a4a9b
commit
eca97bf5b4
|
@ -301,7 +301,7 @@ int32_t syncBeginSnapshot(int64_t rid, int64_t lastApplyIndex) {
|
|||
syncNodeRelease(pSyncNode);
|
||||
return 0;
|
||||
}
|
||||
logRetention = TMAX(logRetention, lastApplyIndex - pSyncNode->minMatchIndex);
|
||||
logRetention = TMAX(logRetention, lastApplyIndex - pSyncNode->minMatchIndex + logRetention);
|
||||
}
|
||||
|
||||
_DEL_WAL:
|
||||
|
|
Loading…
Reference in New Issue