lib/db, lib/model: Cover exec-paths with debug logging (#6918)

This commit is contained in:
Simon Frei
2020-08-20 16:11:20 +02:00
committed by GitHub
parent f79e980fdf
commit cc1f6e4d4a
2 changed files with 6 additions and 1 deletions
+3
View File
@@ -628,17 +628,20 @@ func (f *folder) scanSubdirs(subDirs []string) error {
if f.localFlags&protocol.FlagLocalReceiveOnly != 0 && len(snap.Availability(file.Name)) == 0 {
file.LocalFlags &^= protocol.FlagLocalReceiveOnly
}
l.Debugln("marking file as deleted", nf)
batchAppend(nf, snap)
changes++
case file.IsDeleted() && file.IsReceiveOnlyChanged() && f.localFlags&protocol.FlagLocalReceiveOnly != 0 && len(snap.Availability(file.Name)) == 0:
file.Version = protocol.Vector{}
file.LocalFlags &^= protocol.FlagLocalReceiveOnly
l.Debugln("marking deleted item that doesn't exist anywhere as not receive-only", file)
batchAppend(file.ConvertDeletedToFileInfo(), snap)
changes++
case file.IsDeleted() && file.LocalFlags != f.localFlags:
// No need to bump the version for a file that was
// and is deleted and just the local flags changed.
file.LocalFlags = f.localFlags
l.Debugln("changing localflags on deleted item", file)
batchAppend(file.ConvertDeletedToFileInfo(), snap)
changes++
}