MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / add

Method add

pkg/podlogs/cluster_writer.go:135–140  ·  view source on GitHub ↗

add name as an active process

(name string)

Source from the content-addressed store, hash-verified

133
134// add name as an active process
135func (as *activeSet) add(name string) {
136 as.wg.Add(1)
137 as.m.Lock()
138 defer as.m.Unlock()
139 as.set[name] = true
140}
141
142// has returns true if and only if name is active
143func (as *activeSet) has(name string) bool {

Callers 1

SingleStreamMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected