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

Method writeTail

db/journal/queue.go:70–73  ·  view source on GitHub ↗
(ctx context.Context, id, base ID)

Source from the content-addressed store, hash-verified

68}
69
70func (q *Queue) writeTail(ctx context.Context, id, base ID) error {
71 r := strings.NewReader(fmt.Sprintf("%d %d", id, base))
72 return storage.Put(ctx, q.engine, q.tailPath, r)
73}
74
75// MoveTail moves the tail of the journal to the indicated ID and does
76// no validation. Use with caution. This update must be made by an

Callers 2

MoveTailMethod · 0.95
CreateFunction · 0.80

Calls 2

PutFunction · 0.92
NewReaderMethod · 0.45

Tested by

no test coverage detected