From 4a8c691aef82b773887c15fc4b1d08d3b4352c9b Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Wed, 5 Apr 2023 13:25:55 +0000 Subject: [PATCH] lib/syncthing: Handle successful global migration (fixes #8851) (#8852) lib/syncthing: Handle successfull global migration (fixes #8851) --- lib/syncthing/globalmigrations.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/syncthing/globalmigrations.go b/lib/syncthing/globalmigrations.go index 4b47936c5..1a38c5c82 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)