package surgeon
import "go.etcd.io/bbolt/internal/surgeon"
Index ¶
- func ClearPage(path string, pgId guts_cli.Pgid) error
- func CopyPage(path string, srcPage guts_cli.Pgid, target guts_cli.Pgid) error
- func RevertMetaPage(path string) error
- type XRay
Functions ¶
func ClearPage ¶
func CopyPage ¶
func RevertMetaPage ¶
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 (XRay) FindPathsToKey ¶
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.
Source Files ¶
surgeon.go xray.go
- Version
- v1.3.11
- Published
- Aug 20, 2024
- Platform
- darwin/amd64
- Imports
- 3 packages
- Last checked
- 9 hours ago –
Tools for package owners.