package guts_cli
import "go.etcd.io/bbolt/internal/guts_cli"
Index ¶
- Variables
- func GetActiveMetaPage(path string) (*common.Meta, common.Pgid, error)
- func GetRootPage(path string) (root common.Pgid, activeMeta common.Pgid, err error)
- func ReadPage(path string, pageID uint64) (*common.Page, []byte, error)
- func ReadPageAndHWMSize(path string) (uint64, common.Pgid, error)
- func WritePage(path string, pageBuf []byte) error
Variables ¶
var ( // ErrCorrupt is returned when a checking a data file finds errors. ErrCorrupt = errors.New("invalid value") )
Functions ¶
func GetActiveMetaPage ¶
GetActiveMetaPage returns the active meta page and its page ID (0 or 1).
func GetRootPage ¶
GetRootPage returns the root-page (according to the most recent transaction).
func ReadPage ¶
ReadPage reads Page info & full Page data from a path. This is not transactionally safe.
func ReadPageAndHWMSize ¶
ReadPageAndHWMSize reads Page size and HWM (id of the last+1 Page). This is not transactionally safe.
func WritePage ¶
Source Files ¶
guts_cli.go
- Version
- v1.4.0 (latest)
- Published
- Feb 5, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 3 hours ago –
Tools for package owners.