MCPcopy
hub / github.com/dgraph-io/badger / cleanupLevels

Method cleanupLevels

levels.go:217–225  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

215}
216
217func (s *levelsController) cleanupLevels() error {
218 var firstErr error
219 for _, l := range s.levels {
220 if err := l.close(); err != nil && firstErr == nil {
221 firstErr = err
222 }
223 }
224 return firstErr
225}
226
227// dropTree picks all tables from all levels, creates a manifest changeset,
228// applies it, and then decrements the refs of these tables, which would result

Callers 2

newLevelsControllerFunction · 0.95
closeMethod · 0.95

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected