diff options
author | Jakob Borg <jakob@kastelo.net> | 2023-04-05 13:25:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-05 15:25:55 +0200 |
commit | 4a8c691aef82b773887c15fc4b1d08d3b4352c9b (patch) | |
tree | aa233c227fb39c744995f6fd49b7be65f614bba1 | |
parent | e8dafb979cd3d8a1e35dcf3ca472c59531c8662b (diff) |
lib/syncthing: Handle successful global migration (fixes #8851) (#8852)v1.23.4
lib/syncthing: Handle successfull global migration (fixes #8851)
-rw-r--r-- | lib/syncthing/globalmigrations.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/syncthing/globalmigrations.go b/lib/syncthing/globalmigrations.go index 4b47936c5e..1a38c5c828 100644 --- a/lib/syncthing/globalmigrations.go +++ b/lib/syncthing/globalmigrations.go @@ -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) |