MCPcopy
hub / github.com/etcd-io/bbolt / newFreelist

Function newFreelist

db.go:1314–1319  ·  view source on GitHub ↗
(freelistType FreelistType)

Source from the content-addressed store, hash-verified

1312}
1313
1314func newFreelist(freelistType FreelistType) fl.Interface {
1315 if freelistType == FreelistMapType {
1316 return fl.NewHashMapFreelist()
1317 }
1318 return fl.NewArrayFreelist()
1319}
1320
1321// Options represents the options that can be set when opening a database.
1322type Options struct {

Callers 1

loadFreelistMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected