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

Method delSpan

internal/freelist/hashmap.go:163–171  ·  view source on GitHub ↗
(start common.Pgid, size uint64)

Source from the content-addressed store, hash-verified

161}
162
163func (f *hashMap) delSpan(start common.Pgid, size uint64) {
164 delete(f.forwardMap, start)
165 delete(f.backwardMap, start+common.Pgid(size-1))
166 delete(f.freemaps[size], start)
167 if len(f.freemaps[size]) == 0 {
168 delete(f.freemaps, size)
169 }
170 f.freePagesCount -= size
171}
172
173func (f *hashMap) mergeSpans(ids common.Pgids) {
174 if len(ids) == 0 {

Callers 2

AllocateMethod · 0.95
mergeWithExistingSpanMethod · 0.95

Calls 1

PgidTypeAlias · 0.92

Tested by

no test coverage detected