MCPcopy
hub / github.com/netdata/netdata / Unlock

Method Unlock

src/go/plugin/framework/filelock/filelock.go:44–55  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

42}
43
44func (l *Locker) Unlock(name string) {
45 filename := l.filename(name)
46
47 locker, ok := l.locks[filename]
48 if !ok {
49 return
50 }
51
52 delete(l.locks, filename)
53
54 _ = locker.Close()
55}
56
57func (l *Locker) UnlockAll() {
58 for key, locker := range l.locks {

Callers 15

WriteMethod · 0.80
LenMethod · 0.80
StringMethod · 0.80
EnableDataCaptureMethod · 0.80
RegisterJobMethod · 0.80
RecordJobStructureMethod · 0.80
UpdateJobStructureMethod · 0.80
RecordCollectionMethod · 0.80
recordWriteErrorMethod · 0.80
LoadMethod · 0.80
ResetMaterializedMethod · 0.80
preparePlanMethod · 0.80

Calls 2

filenameMethod · 0.95
CloseMethod · 0.65

Tested by 15

WriteMethod · 0.64
LenMethod · 0.64
StringMethod · 0.64
WriteMethod · 0.64
StringMethod · 0.64
TestManager_tryFinalizeFunction · 0.64
RegisterComponentMethod · 0.64
UnregisterComponentMethod · 0.64
snapshotMethod · 0.64