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

Function allPendingPages

internal/freelist/freelist_test.go:559–566  ·  view source on GitHub ↗
(p map[common.Txid]*txPending)

Source from the content-addressed store, hash-verified

557}
558
559func allPendingPages(p map[common.Txid]*txPending) common.Pgids {
560 pgids := common.Pgids{}
561 for _, pending := range p {
562 pgids = append(pgids, pending.ids...)
563 }
564 sort.Sort(pgids)
565 return pgids
566}
567
568func Benchmark_FreelistRelease10K(b *testing.B) { benchmark_FreelistRelease(b, 10000) }
569func Benchmark_FreelistRelease100K(b *testing.B) { benchmark_FreelistRelease(b, 100000) }

Callers 1

requirePagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected