MCPcopy Create free account
hub / github.com/aptly-dev/aptly / CloseDatabase

Method CloseDatabase

context/context.go:358–367  ·  view source on GitHub ↗

CloseDatabase closes the db temporarily

()

Source from the content-addressed store, hash-verified

356
357// CloseDatabase closes the db temporarily
358func (context *AptlyContext) CloseDatabase() error {
359 context.Lock()
360 defer context.Unlock()
361
362 if context.database == nil {
363 return nil
364 }
365
366 return context.database.Close()
367}
368
369// ReOpenDatabase reopens the db after close
370func (context *AptlyContext) ReOpenDatabase() error {

Callers 8

aptlyPublishListTxtFunction · 0.80
aptlyPublishListJSONFunction · 0.80
aptlyRepoListTxtFunction · 0.80
aptlyRepoListJSONFunction · 0.80
aptlyMirrorListTxtFunction · 0.80
aptlyMirrorListJSONFunction · 0.80
aptlyMirrorUpdateFunction · 0.80
acquireDatabaseFunction · 0.80

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected