lib/db: Handle indirection error repairing sequences (fixes #7026) (#7525)

This commit is contained in:
Simon Frei
2021-04-05 10:24:16 +02:00
committed by GitHub
parent 96ba5c2b23
commit f30f9c50f8
4 changed files with 60 additions and 20 deletions
+1 -1
View File
@@ -516,7 +516,7 @@ func TestCheckGlobals(t *testing.T) {
}
// Clean up global entry of the now missing file
if repaired, err := db.checkGlobals([]byte(fs.folder)); err != nil {
if repaired, err := db.checkGlobals(fs.folder); err != nil {
t.Fatal(err)
} else if repaired != 1 {
t.Error("Expected 1 repaired global item, got", repaired)