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
@@ -91,10 +91,6 @@ func newDBInstance(db *leveldb.DB) *Instance {
|
||||
return i
|
||||
}
|
||||
|
||||
func (db *Instance) Compact() error {
|
||||
return db.CompactRange(util.Range{})
|
||||
}
|
||||
|
||||
func (db *Instance) genericReplace(folder, device []byte, fs []protocol.FileInfo, localSize, globalSize *sizeTracker, deleteFn deletionHandler) int64 {
|
||||
sort.Sort(fileList(fs)) // sort list on name, same as in the database
|
||||
|
||||
|
||||
Reference in New Issue
Block a user