syncthing/test
Jakob Borg 5f4ed66aa1 lib/model: Properly schedule pull on reconnect (fixes #4504)
We need to reset prevSeq so that we force a full check when someone
reconnects - the sequence number may not have changed due to the
reconnect. (This is a regression; we did this before f6ea2a7.)

Also add an optimization: we schedule a pull after scanning, but there
is no need to do so if no changes were detected. This matters now
because the scheduled pull actually traverses the database which is
expensive.

This, however, makes the pull not happen on initial scan if there were
no changes during the initial scan. Compensate by always scheduling a
pull after initial scan in the rwfolder itself.

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4508
LGTM: imsodin, AudriusButkevicius
2017-11-17 12:11:45 +00:00
..
h1 test: Mend tests for latest event changes etc 2017-11-13 00:25:07 +01:00
h2 test: Mend tests for latest event changes etc 2017-11-13 00:25:07 +01:00
h3 test: Unflake symlink/scan tests 2017-11-13 00:25:07 +01:00
h4 test: Mend tests for latest event changes etc 2017-11-13 00:25:07 +01:00
logs Improvements to integration tests 2015-01-22 00:18:08 +00:00
.gitignore Add devices without restart (fixes #2083) 2015-07-22 10:43:47 +02:00
cli_test.go test: Clean & unflake cli & conflict tests 2017-11-13 01:06:16 +01:00
conflict_test.go test: Clean & unflake cli & conflict tests 2017-11-13 01:06:16 +01:00
delay_scan_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
filetype_test.go test: Clean & unflake HTTP / filetype tests 2017-11-13 01:00:49 +01:00
http_test.go test: Clean & unflake HTTP / filetype tests 2017-11-13 01:00:49 +01:00
ignore_test.go test: Clean and unflake ignore / manupeers / reconnect / override tests 2017-11-13 01:00:36 +01:00
manypeers_test.go test: Clean and unflake ignore / manupeers / reconnect / override tests 2017-11-13 01:00:36 +01:00
override_test.go test: Clean and unflake ignore / manupeers / reconnect / override tests 2017-11-13 01:00:36 +01:00
parallell_scan_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
reconnect_test.go lib/model: Properly schedule pull on reconnect (fixes #4504) 2017-11-17 12:11:45 +00:00
reset_test.go lib/model: Properly schedule pull on reconnect (fixes #4504) 2017-11-17 12:11:45 +00:00
scan_test.go test: Unflake symlink/scan tests 2017-11-13 00:25:07 +01:00
symlink_test.go test: Unflake symlink/scan tests 2017-11-13 00:25:07 +01:00
sync_test.go lib/model: Properly schedule pull on reconnect (fixes #4504) 2017-11-17 12:11:45 +00:00
transfer-bench_test.go test: Mend tests for latest event changes etc 2017-11-13 00:25:07 +01:00
usage_unix.go lib/connections: Add KCP support (fixes #804) 2017-03-07 12:44:16 +00:00
usage_windows.go lib/connections: Add KCP support (fixes #804) 2017-03-07 12:44:16 +00:00
util.go test: Mend tests for latest event changes etc 2017-11-13 00:25:07 +01:00