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

Conversation

luluz66
Copy link
Contributor

@luluz66 luluz66 commented May 7, 2024

In replica.Replica, rename member var ShardID -> shardID and ReplicaID ->
replicaID.

In placement driver PR, 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.

Related issues: N/A

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 luluz66 requested a review from tylerwilliams May 7, 2024 21:57
@luluz66 luluz66 merged commit 7f0bf9d into master May 8, 2024
19 checks passed
@luluz66 luluz66 deleted the repl-id branch May 8, 2024 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants