syncthing/lib/model
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
..
testdata mv internal lib 2015-08-09 09:35:26 +02:00
.gitignore mv internal lib 2015-08-09 09:35:26 +02:00
debug.go Implement facility based logger, debugging via REST API 2015-10-03 18:09:53 +02:00
deviceactivity_test.go lib/model, lib/protocol: Implement temporary indexes (fixes #950) 2016-04-15 10:59:41 +00:00
deviceactivity.go lib/model, lib/protocol: Implement temporary indexes (fixes #950) 2016-04-15 10:59:41 +00:00
devicedownloadstate_test.go lib/model: Test should pass go vet inspections 2016-04-15 11:41:18 +00:00
devicedownloadstate.go all: Correct spelling in comments 2016-05-08 10:54:22 +00:00
doc.go mv internal lib 2015-08-09 09:35:26 +02:00
folder.go lib/model: Refactor out folder and folderscan types, simplify somewhat 2016-04-26 14:01:46 +00:00
folderscan.go lib/model: Refactor out folder and folderscan types, simplify somewhat 2016-04-26 14:01:46 +00:00
folderstate.go lib/model: Refactor out folder and folderscan types, simplify somewhat 2016-04-26 14:01:46 +00:00
model_test.go lib/model: Fix accounting error in rescan with multiple subs (fixes #3028) 2016-05-09 12:56:21 +00:00
model.go lib/config: Don't require restart when adding folders/devices or changing listen address 2016-05-09 11:30:19 +00:00
progressemitter_test.go lib/model, lib/protocol: Implement temporary indexes (fixes #950) 2016-04-15 10:59:41 +00:00
progressemitter.go all: Clean up dead code 2016-04-22 21:15:36 +00:00
queue_test.go tests: messagediff argument order should be expected, actual 2016-03-17 08:03:29 +01:00
queue.go Tests must use locking to avoid race (fixes #2394) 2015-10-20 08:51:31 +02:00
rofolder.go lib/model: Use factories for creating folders 2016-05-04 10:47:33 +00:00
rwfolder_test.go lib/model: Prettify tests (fixes #3014) 2016-04-26 20:19:30 +00:00
rwfolder.go lib/model: Fix accounting error in rescan with multiple subs (fixes #3028) 2016-05-09 12:56:21 +00:00
sentdownloadstate.go lib/model, lib/protocol: Implement temporary indexes (fixes #950) 2016-04-15 10:59:41 +00:00
sharedpullerstate_test.go lib/model, lib/protocol: Implement temporary indexes (fixes #950) 2016-04-15 10:59:41 +00:00
sharedpullerstate.go lib/model: Do not use WRONLY (ref #2584) 2016-04-22 08:12:10 +00:00
tempname_test.go mv internal lib 2015-08-09 09:35:26 +02:00
tempname.go mv internal lib 2015-08-09 09:35:26 +02:00
util.go mv internal lib 2015-08-09 09:35:26 +02:00