Skip to content

Commit

Permalink
Add clause to handle potential error return.
Browse files Browse the repository at this point in the history
And update to 1.7.1
  • Loading branch information
kjnilsson committed Dec 4, 2023
1 parent 7f6d8e6 commit 9f8bfc9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module(
name = "rabbitmq_osiris",
version = "1.7.0",
version = "1.7.1",
)

bazel_dep(
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PROJECT = osiris
PROJECT_DESCRIPTION = Foundation of the log-based streaming subsystem for RabbitMQ
PROJECT_VERSION = 1.7.0
PROJECT_VERSION = 1.7.1

define PROJECT_ENV
[
Expand Down
4 changes: 3 additions & 1 deletion src/osiris_log.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1560,7 +1560,9 @@ read_chunk_parsed(#?MODULE{mode = #read{}} = State0,
{Records, State1};
{ok, Header, I0, State1} when HeaderOrNot == with_header ->
Records = iter_all_records(iterator_next(I0), []),
{ok, Header, Records, State1}
{ok, Header, Records, State1};
Err ->
Err
end.

iter_all_records(end_of_chunk, Acc) ->
Expand Down

0 comments on commit 9f8bfc9

Please sign in to comment.