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

Method has

pkg/podlogs/cluster_writer.go:143–148  ·  view source on GitHub ↗

has returns true if and only if name is active

(name string)

Source from the content-addressed store, hash-verified

141
142// has returns true if and only if name is active
143func (as *activeSet) has(name string) bool {
144 as.m.Lock()
145 defer as.m.Unlock()
146 _, found := as.set[name]
147 return found
148}
149
150// drop takes a name out of the active set
151func (as *activeSet) drop(name string) {

Callers 1

SingleStreamMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected