Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
141
func
(n *ClusterNode) IsMaster() bool {
142
return
n.role == RoleMaster
143
}
144
145
func
(n *ClusterNode) GetClient() *redis.Client {
146
if
client, ok := clients.Load(n.ID()); ok {
Callers
1
Reset
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected