MCPcopy Create free account
hub / github.com/apache/kvrocks-controller / IsMaster

Method IsMaster

store/cluster_node.go:141–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139}
140
141func (n *ClusterNode) IsMaster() bool {
142 return n.role == RoleMaster
143}
144
145func (n *ClusterNode) GetClient() *redis.Client {
146 if client, ok := clients.Load(n.ID()); ok {

Callers 1

ResetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected