lib/db, lib/syncthing: Don't repair DB on upgrade, but on error (fixes #6917) (#6971)

This commit is contained in:
Simon Frei
2020-09-10 10:54:41 +02:00
committed by GitHub
parent c5c23ed10f
commit 08bebbe59b
9 changed files with 111 additions and 61 deletions
+1 -1
View File
@@ -931,7 +931,7 @@ func TestDuplicateNeedCount(t *testing.T) {
files[0].Version = files[0].Version.Update(remoteDevice0.Short())
fs.Update(remoteDevice0, files)
db.CheckRepair()
db.checkRepair()
fs = NewFileSet(folder, testFs, db)
found := false