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

Method close

levels.go:1055–1058  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1053}
1054
1055func (s *levelsController) close() error {
1056 err := s.cleanupLevels()
1057 return errors.Wrap(err, "levelsController.Close")
1058}
1059
1060// get returns the found value if any. If not found, we return nil.
1061func (s *levelsController) get(key []byte, maxVs *y.ValueStruct, startLevel int) (

Callers 2

newLevelsControllerFunction · 0.95
cleanupLevelsMethod · 0.45

Calls 1

cleanupLevelsMethod · 0.95

Tested by

no test coverage detected