MCPcopy Create free account
hub / github.com/couchbase/moss / Footer

Struct Footer

store.go:71–86  ·  view source on GitHub ↗

Footer represents a footer record persisted in a file, and also implements the moss.Snapshot interface.

Source from the content-addressed store, hash-verified

69// Footer represents a footer record persisted in a file, and also
70// implements the moss.Snapshot interface.
71type Footer struct {
72 m sync.Mutex // Protects the fields that follow.
73 refs int
74
75 SegmentLocs SegmentLocs // Persisted; older SegmentLoc's come first.
76 PrevFooterOffset int64 // Persisted; link for snapshot restoration.
77
78 ss *segmentStack // Ephemeral.
79
80 fileName string // Ephemeral; file name; "" when unpersisted.
81 filePos int64 // Ephemeral; byte offset of footer; <= 0 when unpersisted.
82
83 incarNum uint64 // Ephemeral; to detect fast collection recreations.
84
85 ChildFooters map[string]*Footer // Persisted; Child collections by name.
86}
87
88// --------------------------------------------------------
89

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected