syncthing/lib
Jakob Borg 1a703efa78 lib/model: Fix accounting error in rescan with multiple subs (fixes #3028)
When doing prefix scans in the database, "foo" should not be considered
a prefix of "foo2". Instead, it should match "foo" exactly and also
strings with the prefix "foo/". This is more restrictive than what the
standard leveldb prefix scan does so we add some code to enforce it.

Also exposes the initialScanCompleted on the rwfolder for testing, and
change it to be a channel (so we can wait for it from another
goroutine). Otherwise we can't be sure when the initial scan has
completed, and we need to wait for that or it might pick up changes
we're doing at an unexpected time.

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3067
2016-05-09 12:56:21 +00:00
..
auto build: Generate gui.files.go on the fly, remove from repo 2016-03-28 10:03:13 +00:00
beacon Remove unused struct field 2015-10-27 09:55:05 +01:00
config lib/config: Don't require restart when adding folders/devices or changing listen address 2016-05-09 11:30:19 +00:00
connections lib/connections: Refactor 2016-05-04 19:38:12 +00:00
db lib/model: Fix accounting error in rescan with multiple subs (fixes #3028) 2016-05-09 12:56:21 +00:00
dialer lib/dialer: Add env var to disable proxy fallback (fixes #3006) 2016-04-24 16:30:20 +00:00
discover all: Correct spelling in comments 2016-05-08 10:54:22 +00:00
events lib/connections: Refactor 2016-05-04 19:38:12 +00:00
ignore all: Correct spelling in comments 2016-05-08 10:54:22 +00:00
logger cmd/syncthing: Extract interfaces for things the API depends on 2016-03-21 19:36:08 +00:00
model lib/model: Fix accounting error in rescan with multiple subs (fixes #3028) 2016-05-09 12:56:21 +00:00
nat lib/connections: Refactor 2016-05-04 19:38:12 +00:00
osutil all: Correct spelling in comments 2016-05-08 10:54:22 +00:00
pmp lib/{nat,pmp}: Fix shadowing and nil IPs 2016-04-16 16:48:07 +00:00
protocol all: Correct spelling in comments 2016-05-08 10:54:22 +00:00
rc cmd/stbench: Add utility to run benchmark tests 2016-03-25 20:52:20 +00:00
relay all: Correct spelling in comments 2016-05-08 10:54:22 +00:00
scanner all: Correct spelling in comments 2016-05-08 10:54:22 +00:00
signature The PublicKey() method is an addition in Go 1.4 2015-10-27 16:03:14 +01:00
stats We should pass around db.Instance instead of leveldb.DB 2015-10-31 12:35:30 +01:00
symlinks Fix import paths 2015-09-22 19:38:46 +02:00
sync lib/sync: Skip the timing tests if the host timer is flaky 2016-03-27 10:41:38 +00:00
tlsutil Generate ECDSA keys instead of RSA 2015-11-27 09:15:12 +01:00
upgrade lib/upgrade: Don't attempt processing files larger than expected max binary size (ref #3045) 2016-05-06 14:14:19 +00:00
upnp lib/upnp: Fix port order 2016-04-16 22:44:07 +00:00
util cmd/syncthing: Use random folder ID for default folder, limit random charset 2016-05-09 09:43:40 +00:00
versioner lib/versioner: Refactor for testing, speed up test 2016-04-15 14:26:39 +00:00