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

Method RemoveAll

conn/pool.go:95–104  ·  view source on GitHub ↗

RemoveAll removes all pool entries.

()

Source from the content-addressed store, hash-verified

93
94// RemoveAll removes all pool entries.
95func (p *Pools) RemoveAll() {
96 p.Lock()
97 defer p.Unlock()
98
99 for k, pool := range p.all {
100 glog.Warningf("CONN: Disconnecting from %s\n", k)
101 delete(p.all, k)
102 pool.shutdown()
103 }
104}
105
106// RemoveInvalid removes invalid nodes from the list of pools.
107func (p *Pools) RemoveInvalid(state *pb.MembershipState) {

Callers 15

runFunction · 0.80
cleanupMethod · 0.80
RunBulkLoaderFunction · 0.80
copyExportToLocalFsFunction · 0.80
TestMainFunction · 0.80
TestMainFunction · 0.80
archiveDebugInfoFunction · 0.80
TestDecryptFunction · 0.80
makeDirEmptyFunction · 0.80
cleanupMethod · 0.80
cleanupAndExitFunction · 0.80

Calls 4

WarningfMethod · 0.80
shutdownMethod · 0.80
LockMethod · 0.45
UnlockMethod · 0.45

Tested by 15

copyExportToLocalFsFunction · 0.64
TestMainFunction · 0.64
TestMainFunction · 0.64
TestDecryptFunction · 0.64
cleanupAndExitFunction · 0.64
cleanupAndExitFunction · 0.64
TestZeroAuditFunction · 0.64
cleanupAndExitFunction · 0.64
cleanupAndExitFunction · 0.64
TestCDCFunction · 0.64
dirCleanupFunction · 0.64