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

kvserver,rac2,replica_rac2: consistently read from RawNode #132049

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 6, 2024

  1. kvserver,rac2,replica_rac2: consistently read from RawNode

    The replica_rac2.RaftNode interface is no more, and is replaced by
    RaftNodeBasicState that is passed in to Processor by the caller.
    
    The rac2.RaftInterface remains, and is solely for use by RangeController.
    Various methods on replica_rac2.Replica are also removed.
    
    kvserver.Replica is responsible for populating RaftNodeBasicState
    and RaftEvent.ReplicasStateInfo (the latter was previously being
    populated in processorImpl).
    
    For the raft state accessed by RAC2 code during Replica.handleRaftReady,
    this centralizes all Raft state access to when
    Replica.handleRaftReadyRaftMuLocked locks the Replica.mu.
    
    Epic: CRDB-37515
    
    Release note: None
    sumeerbhola committed Oct 6, 2024
    Configuration menu
    Copy the full SHA
    d996bfc View commit details
    Browse the repository at this point in the history