lib/db, lib/model: Resolve identical recv only items (fixes #5130) (#5230)

This commit is contained in:
Simon Frei
2018-10-10 12:43:07 +02:00
committed by Jakob Borg
parent caa2356409
commit d10773c311
5 changed files with 173 additions and 14 deletions

View File

@@ -163,7 +163,7 @@ func need(global FileIntf, haveLocal bool, localVersion protocol.Vector) bool {
return false
}
// We don't need the global file if we already have the same version.
if haveLocal && localVersion.Equal(global.FileVersion()) {
if haveLocal && localVersion.GreaterEqual(global.FileVersion()) {
return false
}
return true