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

spanconfig: introduce the spanconfig.SQLWatcher #69661

Closed

Commits on Oct 20, 2021

  1. spanconfig: introduce the spanconfig.SQLWatcher

    The SQLWatcher is intended to incrementally watch for events on
    system.zones and system.descriptors. It establishes rangefeeds on these
    tables from a given checkpoint to do so. It buffers events until the
    next checkpoint. These buffered events, along with the new checkpoint
    timestamp, are passed to the handler callback.
    
    The SQLWatcher uses an eventBuffer helper struct to buffer rangefeed
    updates. This thing maintains the notion of a checkpoint timestamp,
    whcih is the minimum timestamp for {zone,descriptor} checkpoint
    events.
    
    These interfaces aren't hooked up to interact with eachother yet.
    That's forthcoming in a future patch.
    
    References cockroachdb#67679
    
    Release note: None
    arulajmani committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    91d9dc7 View commit details
    Browse the repository at this point in the history