lib/db, lib/syncthing: Repair db once on upgrade (ref #6425, #6427) (#6429)

This commit is contained in:
Simon Frei
2020-03-19 15:58:32 +01:00
committed by GitHub
parent 5975772ed8
commit 74706bb02b
4 changed files with 123 additions and 104 deletions
+1 -1
View File
@@ -352,7 +352,7 @@ func TestRepairSequence(t *testing.T) {
// Loading the metadata for the first time means a "re"calculation happens,
// along which the sequences get repaired too.
db.gcMut.RLock()
_ = loadMetadataTracker(db, folderStr)
_ = db.loadMetadataTracker(folderStr)
db.gcMut.RUnlock()
if err != nil {
t.Fatal(err)