MCPcopy Index your code
hub / github.com/aptly-dev/aptly / releaseDatabaseConnection

Function releaseDatabaseConnection

api/api.go:153–161  ·  view source on GitHub ↗

Release database connection when not needed anymore

()

Source from the content-addressed store, hash-verified

151
152// Release database connection when not needed anymore
153func releaseDatabaseConnection() error {
154 if dbRequests == nil {
155 return nil
156 }
157
158 errCh := make(chan error)
159 dbRequests <- dbRequest{releasedb, errCh}
160 return <-errCh
161}
162
163// runs tasks in background. Acquires database connection first.
164func runTaskInBackground(name string, resources []string, proc task.Process) (task.Task, *task.ResourceConflictError) {

Callers 1

runTaskInBackgroundFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected