You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Files ignored on one remote do not get synced #7608
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Since #7476 C pulls the global invalid file in step 1, i.e. it has the newest version locally, just invalid. And having an up-to-date invalid file means being in-sync, not needing a file. Otherwise e.g. an ignored file would keep being "pulled", and marked as ignored.
Right.... We could react to the fact that the head of the global list goes from being invalid to being valid, but since we already have an in-sync (but invalid) entry we don't do anything, as this is the same situation as if we'd ignored it ourselves for example. A pickle, indeed.
Just mark everything as needed when the global version changes from invalid to valid. Problems:
Whether an item is needed is then based on transient information. When the item changes in the future, it's not clear whether it was needed or not before -> messed up accounting.
And even worse: We'd then need more special cases in the puller: It needs to handle pulling stuff that we don't actually need (e.g. locally changed item is then suddenly needed, but we shouldn't actually override that with the global).
A no-go.
Add a new local invalid flag FlagLocalGlobalInvalid and consider needed when that flag is set and the global is valid, regardless of version. Works, but means that we either need to do an additional file info lookup when updating a local file or store that local flag in the global version list. Seems doable, but still means lots of complexity.
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
lib: Revert needing invalid files (fixes syncthing#7608, ref syncthin…
lib: Revert needing invalid files (fixes syncthing#7608, ref syncthin…
lib: Revert needing invalid files (fixes syncthing#7608, ref syncthin…
lib: Revert needing invalid files (fixes syncthing#7608, ref syncthin…
calmh commentedon Apr 29, 2021
I don't understand. Why doesn't C prefer the non-invalid version of F and pull that?
imsodin commentedon Apr 29, 2021
Since #7476 C pulls the global invalid file in step 1, i.e. it has the newest version locally, just invalid. And having an up-to-date invalid file means being in-sync, not needing a file. Otherwise e.g. an ignored file would keep being "pulled", and marked as ignored.
calmh commentedon Apr 29, 2021
Right.... We could react to the fact that the head of the global list goes from being invalid to being valid, but since we already have an in-sync (but invalid) entry we don't do anything, as this is the same situation as if we'd ignored it ourselves for example. A pickle, indeed.
imsodin commentedon Apr 29, 2021
Exactly. I considered two options to solve this:
Whether an item is needed is then based on transient information. When the item changes in the future, it's not clear whether it was needed or not before -> messed up accounting.
And even worse: We'd then need more special cases in the puller: It needs to handle pulling stuff that we don't actually need (e.g. locally changed item is then suddenly needed, but we shouldn't actually override that with the global).
A no-go.
FlagLocalGlobalInvalidand consider needed when that flag is set and the global is valid, regardless of version. Works, but means that we either need to do an additional file info lookup when updating a local file or store that local flag in the global version list. Seems doable, but still means lots of complexity.calmh commentedon Apr 29, 2021
I see now how the status quo becomes the more preferable option.
lib: Revert needing invalid files (fixes syncthing#7608, ref syncthin…