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

[raft] Add methods in replica.Replica to get IDs and range descriptor. #6520

Merged
merged 1 commit into from
May 8, 2024

Commits on May 7, 2024

  1. [raft] Add methods in replica.Replica to get IDs and range descriptor.

    In replica.Replica, rename ShardID -> shardID and ReplicaID ->
    replicaID.
    
    In placement driver PR, #6515,
    I need to get access to shard id and replica id through interface
    functions; and golang doesn't allow me to create ShardID() when there is
    a ShardID member variable.
    
    Also, changing it to private variables make it impossible for other
    classes to accidentally change shard id and replica id.
    luluz66 committed May 7, 2024
    Configuration menu
    Copy the full SHA
    1e28bb5 View commit details
    Browse the repository at this point in the history