From a9d422e008ed999c7c1ed33de8dbe230e5896aa2 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Thu, 9 Nov 2017 13:55:45 +0100 Subject: [PATCH] Revert "lib/model: Use the new file name when requesting rescan" This has consequences that I haven't thought through for case mismatches (i.e. we have foo.txt in the database and queue a rescan for FOO.txt). --- lib/model/rwfolder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/model/rwfolder.go b/lib/model/rwfolder.go index 8bf97769..5ff00bc7 100644 --- a/lib/model/rwfolder.go +++ b/lib/model/rwfolder.go @@ -1386,7 +1386,7 @@ func (f *sendReceiveFolder) performFinish(state *sharedPullerState) error { // sweep is complete. As we do retries, we'll queue the scan // for this file up to ten times, but the last nine of those // scans will be cheap... - go f.Scan([]string{state.file.Name}) + go f.Scan([]string{state.curFile.Name}) return fmt.Errorf("file modified but not rescanned; will try again later") }