bboltgo.etcd.io/bbolt/internal/guts_cli Index | Files

package guts_cli

import "go.etcd.io/bbolt/internal/guts_cli"

Index

Variables

var (
	// ErrCorrupt is returned when a checking a data file finds errors.
	ErrCorrupt = errors.New("invalid value")
)

Functions

func GetActiveMetaPage

func GetActiveMetaPage(path string) (*common.Meta, common.Pgid, error)

GetActiveMetaPage returns the active meta page and its page ID (0 or 1).

func GetRootPage

func GetRootPage(path string) (root common.Pgid, activeMeta common.Pgid, err error)

GetRootPage returns the root-page (according to the most recent transaction).

func ReadPage

func ReadPage(path string, pageID uint64) (*common.Page, []byte, error)

ReadPage reads Page info & full Page data from a path. This is not transactionally safe.

func ReadPageAndHWMSize

func ReadPageAndHWMSize(path string) (uint64, common.Pgid, error)

ReadPageAndHWMSize reads Page size and HWM (id of the last+1 Page). This is not transactionally safe.

func WritePage

func WritePage(path string, pageBuf []byte) error

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.