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

Method HasIndexLock

shock-server/node/helper.go:29–37  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

27}
28
29func (node *Node) HasIndexLock(name string) bool {
30 if info, ok := node.Indexes[name]; ok {
31 info.Locked = locker.IndexLockMgr.Get(node.Id, name)
32 if info.Locked != nil {
33 return true
34 }
35 }
36 return false
37}
38
39func (node *Node) HasIndex(index string) bool {
40 if virtIdx[index] {

Callers 2

ReadMethod · 0.80
IndexTypedRequestFunction · 0.80

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected