Compare commits

...

1 Commits

Author SHA1 Message Date
Jakob Borg
4a8c691aef lib/syncthing: Handle successful global migration (fixes #8851) (#8852)
lib/syncthing: Handle successfull global migration (fixes #8851)
2023-04-05 15:25:55 +02:00

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)