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