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

Method closeParts

shock-server/node/parts.go:118–124  ·  view source on GitHub ↗
(allowEmpty bool)

Source from the content-addressed store, hash-verified

116}
117
118func (node *Node) closeParts(allowEmpty bool) (err error) {
119 // Second param says we will allow empty parts in merging of those parts, true for variable length parts
120 // This is an asynchronous action that will update node in DB when completed, or send error to node.File.Locked.Error
121 node.File.Locked = locker.FileLockMgr.Add(node.Id)
122 go SetFileFromParts(node.Id, node.Parts.Compression, node.Parts.Count, allowEmpty)
123 return
124}

Callers 1

UpdateMethod · 0.95

Calls 2

SetFileFromPartsFunction · 0.85
AddMethod · 0.45

Tested by

no test coverage detected