Skip to content

Commit

Permalink
Add an additional assert
Browse files Browse the repository at this point in the history
  • Loading branch information
bmerry committed Jul 4, 2023
1 parent 66692ec commit 8bfdac7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/recv_chunk_stream_group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ void chunk_stream_group::stream_head_updated(chunk_stream_group_member &s, std::
std::lock_guard<std::mutex> lock(mutex);
std::size_t stream_index = s.group_index;
std::uint64_t old = head_chunks[stream_index];
assert(head_chunk > old); // head_updated should only be called on forward progress
head_chunks[stream_index] = head_chunk;
// Update so that our head chunk is min(head_chunks). We can skip the work
// if we weren't previously the oldest.
Expand Down

0 comments on commit 8bfdac7

Please sign in to comment.