Skip to content
Snippets Groups Projects
Commit 764a548a authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy
Browse files

replication: track registered replica count

Struct replicaset didn't store a number of registered replicas.
Only an array, which was necessary to fullscan each time when want
to find the count.

That is going to be needed in Raft to calculate election quorum.
The patch makes the count tracked so as it could be found for
constant time by simply reading an integer.

Needed for #1146
parent 40335790
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment