Skip to content

Commit

Permalink
fix iterator invalidation (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenziliang authored Apr 10, 2024
1 parent 412bf88 commit a9966a9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ void WatermarkTransformWithSubstream::work()
assert(output_iter == output_chunks.end());
output_chunks.clear();

SCOPE_EXIT({ output_iter = output_chunks.begin(); });

/// We will need clear input_chunk for next run
Chunk process_chunk;
process_chunk.swap(input_chunk);
Expand Down

0 comments on commit a9966a9

Please sign in to comment.