Footer represents a footer record persisted in a file, and also implements the moss.Snapshot interface.
| 69 | // Footer represents a footer record persisted in a file, and also |
| 70 | // implements the moss.Snapshot interface. |
| 71 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected