cmd/syncthing: Don't compact database at startup
This happens automatically in the background anyway, and it can take a long time on low powered devices at an inconvenient time. We just want to get up and running as quickly as possible. GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3000
This commit is contained in:
committed by
Audrius Butkevicius
parent
4eb23a38b1
commit
ccfcdf7f48
@@ -662,13 +662,6 @@ func syncthingMain(runtimeOptions RuntimeOptions) {
|
||||
}
|
||||
}
|
||||
|
||||
// Pack and optimize the database
|
||||
if err := ldb.Compact(); err != nil {
|
||||
// I don't think this is fatal, but who knows. If it is, we'll surely
|
||||
// get an error when trying to write to the db later.
|
||||
l.Infoln("Compacting database:", err)
|
||||
}
|
||||
|
||||
m := model.NewModel(cfg, myID, myDeviceName(cfg), "syncthing", Version, ldb, protectedFiles)
|
||||
cfg.Subscribe(m)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user