lib/db: Configurable block GC time (#6295)

Also retain the interval over restarts by storing last GC time in the
database. This to make sure that GC eventually happens even if the
interval is configured to a long time (say, a month).
This commit is contained in:
Jakob Borg
2020-01-26 15:13:28 +01:00
committed by GitHub
parent 8fc2dfad0c
commit bf4c8439e8
3 changed files with 40 additions and 2 deletions
+2
View File
@@ -451,5 +451,7 @@ func (db *schemaUpdater) updateSchema7to8(_ int) error {
return err
}
db.recordTime(blockGCTimeKey)
return t.commit()
}