MCPcopy Index your code
hub / github.com/containerd/containerd / Close

Method Close

core/metadata/db.go:145–152  ·  view source on GitHub ↗

Close closes the underlying bolt database. Acquires wlock so no GC cycle is in progress when bolt is closed.

()

Source from the content-addressed store, hash-verified

143// Close closes the underlying bolt database.
144// Acquires wlock so no GC cycle is in progress when bolt is closed.
145func (m *DB) Close() error {
146 m.wlock.Lock()
147 defer m.wlock.Unlock()
148 if c, ok := m.db.(io.Closer); ok {
149 return c.Close()
150 }
151 return nil
152}
153
154// Init ensures the database is at the correct version
155// and performs any needed migrations.

Callers 3

testDBFunction · 0.95
newStoresFunction · 0.95
TestCloseFunction · 0.95

Calls 3

LockMethod · 0.65
UnlockMethod · 0.65
CloseMethod · 0.65

Tested by 3

testDBFunction · 0.76
newStoresFunction · 0.76
TestCloseFunction · 0.76