Handle conflicts when pulling (fixes #220)

This commit is contained in:
Jakob Borg
2015-03-29 16:16:36 +02:00
parent 520bb74626
commit 47e64ae503
3 changed files with 278 additions and 10 deletions

View File

@@ -20,12 +20,13 @@ import (
// updated along the way.
type sharedPullerState struct {
// Immutable, does not require locking
file protocol.FileInfo
file protocol.FileInfo // The new file (desired end state)
folder string
tempName string
realName string
reused int // Number of blocks reused from temporary file
ignorePerms bool
version protocol.Vector // The current (old) version
// Mutable, must be locked for access
err error // The first error we hit