mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 22:58:25 +00:00
This commit is contained in:
parent
2c2e6cd0d5
commit
c7cf3ef899
@ -236,9 +236,6 @@ func (a *App) startup() error {
|
|||||||
// Drop delta indexes in case we've changed random stuff we
|
// Drop delta indexes in case we've changed random stuff we
|
||||||
// shouldn't have. We will resend our index on next connect.
|
// shouldn't have. We will resend our index on next connect.
|
||||||
db.DropDeltaIndexIDs(a.ll)
|
db.DropDeltaIndexIDs(a.ll)
|
||||||
|
|
||||||
// Remember the new version.
|
|
||||||
miscDB.PutString("prevVersion", build.Version)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check and repair metadata and sequences on every upgrade including RCs.
|
// Check and repair metadata and sequences on every upgrade including RCs.
|
||||||
@ -249,6 +246,11 @@ func (a *App) startup() error {
|
|||||||
a.ll.CheckRepair()
|
a.ll.CheckRepair()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if build.Version != prevVersion {
|
||||||
|
// Remember the new version.
|
||||||
|
miscDB.PutString("prevVersion", build.Version)
|
||||||
|
}
|
||||||
|
|
||||||
m := model.NewModel(a.cfg, a.myID, "syncthing", build.Version, a.ll, protectedFiles, a.evLogger)
|
m := model.NewModel(a.cfg, a.myID, "syncthing", build.Version, a.ll, protectedFiles, a.evLogger)
|
||||||
|
|
||||||
if a.opts.DeadlockTimeoutS > 0 {
|
if a.opts.DeadlockTimeoutS > 0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user