lib/syncthing: Handle successfull global migration (fixes #8851)
This commit is contained in:
parent
e8dafb979c
commit
4a8c691aef
|
@ -33,7 +33,9 @@ func globalMigration(ll *db.Lowlevel, cfg config.Wrapper) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if prevVersion < 1 {
|
if prevVersion < 1 {
|
||||||
return encryptionTrailerSizeMigration(ll, cfg)
|
if err := encryptionTrailerSizeMigration(ll, cfg); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return miscDB.PutInt64(globalMigrationDBKey, globalMigrationVersion)
|
return miscDB.PutInt64(globalMigrationDBKey, globalMigrationVersion)
|
||||||
|
|
Loading…
Reference in New Issue