MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / Shutdown

Method Shutdown

worker/dbms.go:645–662  ·  view source on GitHub ↗

Shutdown defines dbms shutdown logic.

()

Source from the content-addressed store, hash-verified

643
644// Shutdown defines dbms shutdown logic.
645func (dbms *DBMS) Shutdown() (err error) {
646 dbms.dbMap.Range(func(_, rawDB interface{}) bool {
647 db := rawDB.(*Database)
648
649 if err = db.Shutdown(); err != nil {
650 log.WithError(err).Error("shutdown database failed")
651 }
652
653 return true
654 })
655
656 // persist meta
657 err = dbms.writeMeta()
658
659 dbms.busService.Stop()
660
661 return
662}

Callers 4

startTestServiceFunction · 0.95
TestDBMSFunction · 0.95
mainFunction · 0.95
StopMethod · 0.45

Calls 4

writeMetaMethod · 0.95
WithErrorFunction · 0.92
ErrorMethod · 0.80
StopMethod · 0.45

Tested by 2

startTestServiceFunction · 0.76
TestDBMSFunction · 0.76