MCPcopy Create free account
hub / github.com/brimdata/super / MoveTail

Method MoveTail

db/journal/queue.go:80–82  ·  view source on GitHub ↗

MoveTail moves the tail of the journal to the indicated ID and does no validation. Use with caution. This update must be made by an exclusive write-lock that is outside the scope of the journal package. Unlike HEAD, TAIL is not a hint and must be consistent with the actual log entries at all times

(ctx context.Context, id, base ID)

Source from the content-addressed store, hash-verified

78// Unlike HEAD, TAIL is not a hint and must be consistent with the actual
79// log entries at all times.
80func (q *Queue) MoveTail(ctx context.Context, id, base ID) error {
81 return q.writeTail(ctx, id, base)
82}
83
84func (q *Queue) Boundaries(ctx context.Context) (ID, ID, ID, error) {
85 head, err := q.ReadHead(ctx)

Callers

nothing calls this directly

Calls 1

writeTailMethod · 0.95

Tested by

no test coverage detected