MCPcopy Create free account
hub / github.com/MG-RAST/Shock / LockNode

Method LockNode

shock-server/node/locker/locker.go:118–122  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

116}
117
118func (l *NodeLocker) LockNode(id string) (err error) {
119 l.Add(id)
120 err = l.nodes[id].lock() // here is where we wait
121 return
122}
123
124func (l *NodeLocker) UnlockNode(id string) {
125 l.Lock()

Callers 9

ReplaceMethod · 0.80
ReadMethod · 0.80
IndexTypedRequestFunction · 0.80
AclTypedRequestFunction · 0.80
AsyncIndexerFunction · 0.80
DeleteMethod · 0.80
DeleteIndexMethod · 0.80
UpdateMethod · 0.80
SetFileFromPartsFunction · 0.80

Calls 2

AddMethod · 0.95
lockMethod · 0.80

Tested by

no test coverage detected