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

mvcc: restore unsynced watchers #9281

Merged
merged 1 commit into from
Feb 6, 2018
Merged

Commits on Feb 6, 2018

  1. mvcc: restore unsynced watchers

    In case syncWatchersLoop() starts before Restore() is called,
    watchers already added by that moment are moved to s.synced by the loop.
    However, there is a broken logic that moves watchers from s.synced
    to s.uncyned without setting keyWatchers of the watcherGroup.
    Eventually syncWatchers() fails to pickup those watchers from s.unsynced
    and no events are sent to the watchers, because newWatcherBatch() called
    in the function uses wg.watcherSetByKey() internally that requires
    a proper keyWatchers value.
    Iwasaki Yudai committed Feb 6, 2018
    Configuration menu
    Copy the full SHA
    fcab10b View commit details
    Browse the repository at this point in the history