mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
a2b8485a89
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 |
||
---|---|---|
.. | ||
testdata | ||
cache_test.go | ||
cache.go | ||
ignore_test.go | ||
ignore.go |