Skip to content

Commit

Permalink
Fix handling for empty record batches
Browse files Browse the repository at this point in the history
With magic v2 and above, it's possible to have empty record batches.
This was previously not considered and could lead to panics because the
code relied on the record count being non-zero in multiple places.

Fixes segmentio#874
  • Loading branch information
SoMuchForSubtlety committed Mar 31, 2023
1 parent fd64eaa commit 4cb1fff
Showing 1 changed file with 224 additions and 97 deletions.
Loading

0 comments on commit 4cb1fff

Please sign in to comment.