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

Method HasFileLock

shock-server/node/helper.go:21–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21func (node *Node) HasFileLock() bool {
22 node.File.Locked = locker.FileLockMgr.Get(node.Id)
23 if node.File.Locked != nil {
24 return true
25 }
26 return false
27}
28
29func (node *Node) HasIndexLock(name string) bool {
30 if info, ok := node.Indexes[name]; ok {

Callers 7

UpdateMethod · 0.95
streamDownloadFunction · 0.80
CreateMethod · 0.80
ReadMethod · 0.80
ReadManyMethod · 0.80
IndexTypedRequestFunction · 0.80
addVirtualPartsMethod · 0.80

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected