mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
separate maybeCompactRaftLog function to compact raft log independently from snapshots
Signed-off-by: Clement <gh.2lgqz@aleeas.com>
This commit is contained in:
parent
9b04e4df45
commit
1d08b34a43
@ -2181,7 +2181,6 @@ func (s *EtcdServer) maybeCompactRaftLog(ep *etcdProgress) {
|
||||
return
|
||||
}
|
||||
|
||||
// make sure compacti > 0, because s.r.raftStorage.Compact(compacti) returns ErrCompacted if compacti = 0
|
||||
compacti := ep.snapi - s.Cfg.SnapshotCatchUpEntries
|
||||
|
||||
lg := s.Logger()
|
||||
|
Loading…
x
Reference in New Issue
Block a user