git-hulk commented on PR #2845:
URL: https://github.com/apache/kvrocks/pull/2845#issuecomment-2809575169
> @git-hulk is there a method already there I can use to check if the node
has replicas?
You could add a method in `Server` to export the replica count, for example:
```C++
size_t GetReplicaCount() {
slave_threads_mu_.lock();
auto replica_count = slave_threads_.size();
slave_threads_mu_.unlock();
return replica_count;
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]