mirror of
https://github.com/octoleo/syncthing.git
synced 2025-03-21 10:12:21 +00:00
Don't creash when replacing with empty file set
This commit is contained in:
parent
44bc5fd784
commit
bd2b5db8f3
@ -150,7 +150,7 @@ func ldbGenericReplace(db *leveldb.DB, repo, node []byte, fs []protocol.FileInfo
|
|||||||
ldbUpdateGlobal(snap, batch, repo, node, newName, fs[fsi].Version)
|
ldbUpdateGlobal(snap, batch, repo, node, newName, fs[fsi].Version)
|
||||||
fsi++
|
fsi++
|
||||||
|
|
||||||
case cmp == 0:
|
case moreFs && moreDb && cmp == 0:
|
||||||
// File exists on both sides - compare versions.
|
// File exists on both sides - compare versions.
|
||||||
var ef protocol.FileInfo
|
var ef protocol.FileInfo
|
||||||
ef.UnmarshalXDR(dbi.Value())
|
ef.UnmarshalXDR(dbi.Value())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user