Closed imsodin closed 3 years ago
Steps to reproduce (or just run the test in the PR):
Expected: Event at B/foo
Actual: Event at A/foo
The main fix is in line 100: The path needs to updated too.
I also changed the locking, as both branches of the if require a write-lock, thus acquiring a read-lock first is pointless.
The issue was originally reported in https://github.com/syncthing/syncthing/issues/7076
@rjeczalik lgtm?
@imsodin Looks good!
Steps to reproduce (or just run the test in the PR):
Expected: Event at B/foo
Actual: Event at A/foo
The main fix is in line 100: The path needs to updated too.
I also changed the locking, as both branches of the if require a write-lock, thus acquiring a read-lock first is pointless.
The issue was originally reported in https://github.com/syncthing/syncthing/issues/7076