MCPcopy
hub / github.com/dgraph-io/dgraph / DoneConfChange

Method DoneConfChange

conn/node.go:190–199  ·  view source on GitHub ↗

DoneConfChange marks a configuration change as done and sends the given error to the config channel.

(id uint64, err error)

Source from the content-addressed store, hash-verified

188// DoneConfChange marks a configuration change as done and sends the given error to the
189// config channel.
190func (n *Node) DoneConfChange(id uint64, err error) {
191 n.Lock()
192 defer n.Unlock()
193 ch, has := n.confChanges[id]
194 if !has {
195 return
196 }
197 delete(n.confChanges, id)
198 ch <- err
199}
200
201//nolint:gosec // random node id generator does not require cryptographic precision
202func (n *Node) storeConfChange(che chan error) uint64 {

Callers 2

applyConfChangeMethod · 0.80
applyConfChangeMethod · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected