lib/db: Remove emptied global list in checkGlobals (fixes #6425) (#6426)

This commit is contained in:
Simon Frei
2020-03-19 15:59:49 +01:00
committed by Jakob Borg
parent 00b2340f9a
commit 71faae67f2
4 changed files with 43 additions and 7 deletions
-4
View File
@@ -485,10 +485,6 @@ func (t readWriteTransaction) updateGlobal(gk, keyBuf, folder, device []byte, fi
if err != nil {
return nil, false, err
}
if insertedAt == -1 {
l.Debugln("update global; same version, global unchanged")
return keyBuf, false, nil
}
name := []byte(file.Name)