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

Method removeCluster

controller/controller.go:212–220  ·  view source on GitHub ↗
(namespace, clusterName string)

Source from the content-addressed store, hash-verified

210}
211
212func (c *Controller) removeCluster(namespace, clusterName string) {
213 key := c.buildClusterKey(namespace, clusterName)
214 c.mu.Lock()
215 if cluster, ok := c.clusters[key]; ok {
216 cluster.Close()
217 delete(c.clusters, key)
218 }
219 c.mu.Unlock()
220}
221
222func (c *Controller) updateCluster(namespace, clusterName string) {
223 key := c.buildClusterKey(namespace, clusterName)

Callers 2

leaderEventLoopMethod · 0.95
TestController_BasicsFunction · 0.80

Calls 2

buildClusterKeyMethod · 0.95
CloseMethod · 0.65

Tested by 1

TestController_BasicsFunction · 0.64