You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Database migration can lead to missing blocks error #6389
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionskip-changelogBugs that have never been in a released stable version, and as such excluded from the release notes
There is a problem in the latest database migration, where
the block GC can run concurrently with the migration, and
the block GC doesn't properly use a snapshot for all its operations.
If the database is large then the block GC routine will take time and read FileInfos (none of which have block hashes yet) while the migration runs. The migration creates block list entries in the meantime. Then the block GC starts iterating block lists, without a snapshot, so it sees the new entries and deletes them because the FileInfos didn't refer to them when it saw those.
The end result is erroneously deleted block lists.
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionskip-changelogBugs that have never been in a released stable version, and as such excluded from the release notes
Activity
lib/db: Prevent GC concurrently with migration (fixes syncthing#6389)
lib/db: Prevent GC concurrently with migration (fixes syncthing#6389)
lib/db: Prevent GC concurrently with migration (fixes #6389) (#6390)
Merge branch 'release'
Merge branch 'master' into encryption
Merge branch 'master' into badgermerge