Browse Source

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

lib/syncthing: Handle successfull global migration (fixes #8851)
Jakob Borg 2 years ago
parent
commit
4a8c691aef
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lib/syncthing/globalmigrations.go

+ 3 - 1
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)