mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 19:08:58 +00:00
Tick version clock on received changes.
This commit is contained in:
parent
884bb638bc
commit
74fd4a3722
@ -338,6 +338,10 @@ func (m *Model) Index(nodeID protocol.NodeID, repo string, fs []protocol.FileInf
|
||||
return
|
||||
}
|
||||
|
||||
for i := range fs {
|
||||
lamport.Default.Tick(fs[i].Version)
|
||||
}
|
||||
|
||||
m.rmut.RLock()
|
||||
r, ok := m.repoFiles[repo]
|
||||
m.rmut.RUnlock()
|
||||
@ -367,6 +371,10 @@ func (m *Model) IndexUpdate(nodeID protocol.NodeID, repo string, fs []protocol.F
|
||||
return
|
||||
}
|
||||
|
||||
for i := range fs {
|
||||
lamport.Default.Tick(fs[i].Version)
|
||||
}
|
||||
|
||||
m.rmut.RLock()
|
||||
r, ok := m.repoFiles[repo]
|
||||
m.rmut.RUnlock()
|
||||
|
Loading…
Reference in New Issue
Block a user