New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing a folder label should not trigger a rescan #6891
Comments
Is this something a noob like me could try? |
It's not super easy, as it involves model-folder interactions and handling config changes. As in currently folders are indiscriminately restarted when their config changes, which would have to be changed to some kind of mechanism to let folders know about changed config and then decide whether they can adjust on the fly or need to restart (maybe restart should never be necessary). However it would definitely be an opportunity to learn about Syncthing internals :) |
I think there is already code that should handle this, as label is marked as restart=false in the config, so folders should not be restarted in the model. That doesn't work for some reason. I'd start debugging here: https://github.com/syncthing/syncthing/blob/main/lib/model/model.go#L2493 |
I thought the restart annotations are only for full Syncthing restarts. If it is meant to apply to folder restarts, that's not only not working, but also not fully implemented: There's no way the folder gets config updates for non-restart config changes (e.g. the label is relevant for the folder). |
Restart annotations are what we make of it, there is simply a util function that returns a copy of the struct with fields that have |
Right now, changing a folder label immediately triggers a rescan of that folder. While usually not a big deal, this can be annoying when dealing with huge folders and/or slow hardware. I think that it would be nice not to trigger a rescan if the change does not affect the actual synchronisation.
The text was updated successfully, but these errors were encountered: