syncthing/lib/db
Jakob Borg 1471c15b29
cmd/syncthing, lib/db: Be nicer about dropping deltas on upgrade (#4798)
When dropping delta index IDs due to upgrade, only drop our local one.
Previously, when dropping all of them, we would trigger a full send in
both directions on first connect after upgrade. Then the other side
would upgrade, doing the same thing. Net effect is full index data gets
sent twice in both directions.

With this change we just drop our local ID, meaning we will send our
full index on first connect after upgrade. When the other side upgrades,
they will do the same. This is a bit less cruel.
2018-03-10 11:42:01 +01:00
..
testdata lib/protocol, lib/discover, lib/db: Use protocol buffer serialization (fixes #3080) 2016-07-04 10:40:29 +00:00
.gitignore Change DB label format (index folders, devices) 2016-01-03 19:32:40 +01:00
benchmark_test.go lib/db: Fix benchmarks 2018-01-28 11:26:01 +00:00
blockmap_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
blockmap.go lib/db, lib/model: Always use reasonable sized batches (fixes #2250, fixes #4112) 2017-04-22 14:23:33 +00:00
concurrency_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
debug.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
leveldb_dbinstance.go cmd/syncthing, lib/db: Be nicer about dropping deltas on upgrade (#4798) 2018-03-10 11:42:01 +01:00
leveldb_test.go cmd/syncthing, lib/db: Be nicer about dropping deltas on upgrade (#4798) 2018-03-10 11:42:01 +01:00
leveldb_transactions.go lib/db: Update global counts on invalidation (fixes #4701) 2018-01-27 09:09:13 +00:00
leveldb.go cmd/syncthing: Reset delta indexes on upgrade 2018-02-26 22:22:19 +00:00
meta.go lib/db: Don't panic on negative counts (#4761) 2018-02-14 11:25:34 +01:00
namespaced_test.go lib/db: Fix test for Go 1.9's smarter time.Time values 2017-06-28 14:36:04 +02:00
namespaced.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
set_test.go lib/protocol: Invalid files should always lose (#4747) 2018-02-10 19:40:57 +01:00
set.go lib: Handle metadata changes for send-only folders (fixes #4616, fixes #4627) (#4750) 2018-02-25 09:39:00 +01:00
structs.go lib/db: Keep folder meta data persistently in db (fixes #4400) 2017-12-14 09:51:17 +00:00
structs.pb.go lib/db: Keep folder meta data persistently in db (fixes #4400) 2017-12-14 09:51:17 +00:00
structs.proto lib/db: Keep folder meta data persistently in db (fixes #4400) 2017-12-14 09:51:17 +00:00