Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions internal/stream/follower.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ type Streamer interface {
// log should be used. If in doubt, use ReadCheckpoint instead.
IntegratedSize(ctx context.Context) (uint64, error)

// NextIndex returns the first as-yet unassigned index.
//
// In a quiescent log, this will be the same as the checkpoint size. In a log with entries actively
// being added, this number will be higher since it will take sequenced but not-yet-integrated/not-yet-published
// entries into account.
NextIndex(ctx context.Context) (uint64, error)

// StreamEntries returns an iterator over the range of requested entries [startEntryIdx, startEntryIdx+N).
//
// The iterator will yield either a Bundle struct or an error. If an error is returned the caller should
Expand Down
7 changes: 7 additions & 0 deletions lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ type LogReader interface {
// The expected usage and corresponding behaviours are similar to ReadTile.
ReadEntryBundle(ctx context.Context, index uint64, p uint8) ([]byte, error)

// NextIndex returns the first as-yet unassigned index.
//
// In a quiescent log, this will be the same as the checkpoint size. In a log with entries actively
// being added, this number will be higher since it will take sequenced but not-yet-integrated/not-yet-published
// entries into account.
NextIndex(ctx context.Context) (uint64, error)

stream.Streamer
}

Expand Down
Loading