surgeon

package
v1.3.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearPage

func ClearPage(path string, pgId guts_cli.Pgid) error

func CopyPage

func CopyPage(path string, srcPage guts_cli.Pgid, target guts_cli.Pgid) error

func RevertMetaPage

func RevertMetaPage(path string) error

RevertMetaPage replaces the newer metadata page with the older. It usually means that one transaction is being lost. But frequently data corruption happens on the last transaction pages and the previous state is consistent.

Types

type XRay

type XRay struct {
	// contains filtered or unexported fields
}

func NewXRay

func NewXRay(path string) XRay

func (XRay) FindPathsToKey

func (n XRay) FindPathsToKey(key []byte) ([][]guts_cli.Pgid, error)

FindPathsToKey finds all paths from root to the page that contains the given key. As it traverses multiple buckets, so in theory there might be multiple keys with the given name. Note: For simplicity it's currently implemented as traversing of the whole reachable tree. If key is a bucket name, a page-path referencing the key will be returned as well.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL