Skip to content
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

lib/model: Properly schedule pull on reconnect (fixes #4504) #4508

Closed
wants to merge 2 commits into from

Commits on Nov 13, 2017

  1. lib/model: Properly schedule pull on reconnect (fixes syncthing#4504)

    We need to reset prevSeq so that we force a full check when someone
    reconnects - the sequence number may not have changed due to the
    reconnect. (This is a regression; we did this before f6ea2a7.)
    
    Also add an optimization: we schedule a pull after scanning, but there
    is no need to do so if no changes were detected. This matters now
    because the scheduled pull actually traverses the database which is
    expensive.
    
    This, however, makes the pull not happen on initial scan if there were
    no changes during the initial scan. Compensate by always scheduling a
    pull after initial scan in the rwfolder itself.
    calmh committed Nov 13, 2017
    Configuration menu
    Copy the full SHA
    54ad710 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2017

  1. get rid of prevSeq

    imsodin committed Nov 14, 2017
    Configuration menu
    Copy the full SHA
    79693ae View commit details
    Browse the repository at this point in the history