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

Method DBInit

shock-server/node/node.go:90–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88}
89
90func (node *Node) DBInit() {
91 node.File.Locked = locker.FileLockMgr.Get(node.Id)
92 for name, info := range node.Indexes {
93 info.Locked = locker.IndexLockMgr.Get(node.Id, name)
94 }
95}
96
97func CreateNodeUpload(u *user.User, params map[string]string, files file.FormFiles) (node *Node, err error) {
98 // if copying node or creating subset node from parent, check if user has rights to the original node

Callers 2

dbFindFunction · 0.45
LoadFunction · 0.45

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected