package freelist
Import Path
go.etcd.io/bbolt/internal/freelist (on go.dev)
Dependency Relation
imports 6 packages, and imported by one package
Package-Level Type Names (total 2)
AddReadonlyTXID adds a given read-only transaction id for pending page tracking.
Allocate tries to allocate the given number of contiguous pages
from the free list pages. It returns the starting page ID if
available; otherwise, it returns 0.
Copyall copies a list of all free ids and all pending ids in one sorted list.
f.count returns the minimum length required for dst.
Count returns the number of free and pending pages.
EstimatedWritePageSize returns the size in bytes of the freelist after serialization in Write.
This should never underestimate the size.
Free releases a page and its overflow for a given transaction id.
If the page is already free or is one of the meta pages, then a panic will occur.
FreeCount returns the number of free pages.
Freed returns whether a given page is in the free list.
Init initializes this freelist with the given list of pages.
NoSyncReload reads the freelist from Pgids and filters out pending items.
PendingCount returns the number of pending pages.
Read calls Init with the page ids stored in the given page.
ReleasePendingPages releases any pages associated with closed read-only transactions.
Reload reads the freelist from a page and filters out pending items.
RemoveReadonlyTXID removes a given read-only transaction id for pending page tracking.
Rollback removes the pages from a given pending tx.
Write writes the freelist into the given page.
Interface : ReadWriter
func NewArrayFreelist() Interface
func NewHashMapFreelist() Interface
EstimatedWritePageSize returns the size in bytes of the freelist after serialization in Write.
This should never underestimate the size.
Read calls Init with the page ids stored in the given page.
Write writes the freelist into the given page.
Interface (interface)
Package-Level Functions (total 2)
func NewArrayFreelist() Interface func NewHashMapFreelist() Interface
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |