syncthing/lib
Jakob Borg a2b8485a89 lib/ignore: Fast reload of unchanged ignores (fixes #3394)
This changes the "seen" map that we're anyway keeping around to track
the modtimes of loaded files instead. When doing a Load() we check that
1) the file we are loading is in the modtime set, and 2) that none of
the files in the modtime set have changed modtimes. If that's the case
we do a quick return without parsing anything or clearing the cache.

This required adding two one seconds sleeps in the tests to make sure
the modtimes were updated when we expect cache reloads, because I'm on a
crappy filesystem with one second timestamp granularity. That also
proves it works...

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3754
2016-11-22 21:30:45 +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/model: Log folder IDs and labels (fixes #3724) 2016-11-21 20:09:18 +01:00
connections lib/connections: Slow down failing listeners 2016-11-19 12:37:14 +00:00
db build: Fix proto builder on Windows 2016-11-03 22:06:51 +00:00
dialer build, lib: Correct total test coverage calculation 2016-08-08 16:29:32 +00:00
discover build: Fix proto builder on Windows 2016-11-03 22:06:51 +00:00
events lib/events: Hack to make test coverage stable from run to run 2016-08-08 18:09:40 +00:00
fs lib: Remove osutil.Remove & osutil.RemoveAll (fixes #3513) 2016-08-16 10:01:58 +00:00
ignore lib/ignore: Fast reload of unchanged ignores (fixes #3394) 2016-11-22 21:30:45 +00:00
logger cmd/syncthing: Extract interfaces for things the API depends on 2016-03-21 19:36:08 +00:00
model lib/model, lib/protocol: Add Folder.Description() for logging (ref #3741) 2016-11-22 08:36:14 +01:00
nat lib/nat: Avoid concurrent reset of NAT timer (fixes #3337) 2016-06-26 10:17:12 +00:00
osutil lib/osutil: Remove unnecessary fsync in Copy() 2016-11-22 07:59:54 +00:00
pmp build, lib: Correct total test coverage calculation 2016-08-08 16:29:32 +00:00
protocol lib/model, lib/protocol: Add Folder.Description() for logging (ref #3741) 2016-11-22 08:36:14 +01:00
rand lib/rand: Break out random functions into separate package 2016-05-26 07:02:56 +00:00
rc all: Rename LocalVersion to Sequence (fixes #3461) 2016-07-29 19:54:24 +00:00
relay lib/relay: Close invitation channel in all error cases (fixes #3726) 2016-11-13 09:32:05 +01:00
scanner cmd/syncthing: Add selectable sha256 package (fixes #3613, fixes #3614) 2016-09-23 19:33:54 +00:00
sha256 cmd/syncthing: Add selectable sha256 package (fixes #3613, fixes #3614) 2016-09-23 19:33:54 +00:00
signature cmd/syncthing: Add selectable sha256 package (fixes #3613, fixes #3614) 2016-09-23 19:33:54 +00:00
stats build, lib: Correct total test coverage calculation 2016-08-08 16:29:32 +00:00
symlinks build, lib: Correct total test coverage calculation 2016-08-08 16:29:32 +00:00
sync lib/sync: Fix broken build 2016-11-05 02:31:52 +00:00
tlsutil build, lib: Correct total test coverage calculation 2016-08-08 16:29:32 +00:00
upgrade lib/upgrade: Cleanup failed upgrades (fixes #3500, fixes #3530) 2016-08-23 06:53:39 +00:00
upnp lib/upnp: Correct the result deduplication mechanism (fixes #3578) 2016-09-24 07:33:56 +00:00
util lib/rand: Break out random functions into separate package 2016-05-26 07:02:56 +00:00
versioner lib/versioner: Test both spaces and parens in ext versioner paths 2016-09-18 12:24:55 +00:00