Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions serf/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,9 @@ func (s *Snapshotter) processMemberEvent(e MemberEvent) {
// clock value. This is done after member events but should also be done
// periodically due to race conditions with join and leave intents
func (s *Snapshotter) updateClock() {
lastSeen := s.clock.Time() - 1
if lastSeen > s.lastClock {
s.lastClock = lastSeen
current := s.clock.Time()
if current > s.lastClock+1 {
s.lastClock = current - 1
s.tryAppend(fmt.Sprintf("clock: %d\n", s.lastClock))
}
}
Expand Down