lib/syncthing: Handle successful global migration (fixes #8851) (#8852)

lib/syncthing: Handle successfull global migration (fixes #8851)
This commit is contained in:
Jakob Borg 2023-04-05 13:25:55 +00:00 committed by GitHub
parent e8dafb979c
commit 4a8c691aef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,9 @@ func globalMigration(ll *db.Lowlevel, cfg config.Wrapper) error {
}
if prevVersion < 1 {
return encryptionTrailerSizeMigration(ll, cfg)
if err := encryptionTrailerSizeMigration(ll, cfg); err != nil {
return err
}
}
return miscDB.PutInt64(globalMigrationDBKey, globalMigrationVersion)