MCPcopy
hub / github.com/etcd-io/bbolt / Print

Method Print

internal/common/meta.go:151–161  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

149}
150
151func (m *Meta) Print(w io.Writer) {
152 fmt.Fprintf(w, "Version: %d\n", m.version)
153 fmt.Fprintf(w, "Page Size: %d bytes\n", m.pageSize)
154 fmt.Fprintf(w, "Flags: %08x\n", m.flags)
155 fmt.Fprintf(w, "Root: <pgid=%d>\n", m.root.root)
156 fmt.Fprintf(w, "Freelist: <pgid=%d>\n", m.freelist)
157 fmt.Fprintf(w, "HWM: <pgid=%d>\n", m.pgid)
158 fmt.Fprintf(w, "Txn ID: %d\n", m.txid)
159 fmt.Fprintf(w, "Checksum: %016x\n", m.checksum)
160 fmt.Fprintf(w, "\n")
161}

Callers 2

MustCheckMethod · 0.80
pagePrintMetaFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected