Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/netdata/netdata
/ UnlockAll
Method
UnlockAll
src/go/plugin/framework/filelock/filelock.go:57–62 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
55
}
56
57
func
(l *Locker) UnlockAll() {
58
for
key, locker :=
range
l.locks {
59
delete(l.locks, key)
60
_ = locker.Close()
61
}
62
}
63
64
func
(l *Locker) isLocked(name string) bool {
65
_, ok := l.locks[l.filename(name)]
Callers
1
TestLocker_UnlockAll
Function · 0.80
Calls
1
Close
Method · 0.65
Tested by
1
TestLocker_UnlockAll
Function · 0.64