Explorar o código

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).
Jakob Borg %!s(int64=8) %!d(string=hai) anos
pai
achega
a9d422e008
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/model/rwfolder.go

+ 1 - 1
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")
 		}