Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mocchira committed Nov 18, 2016
1 parent a99c1ee commit dc9b948
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/leo_object_storage_haystack.erl
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,9 @@ get_obj_for_new_cntnr(ReadHandler, Offset) ->
{line, ?LINE}, [{offset, Offset},
{header_size, HeaderSize},
{body, Cause}]]),
{error, {abort, Cause}};
%% no more records - https://github.com/leo-project/leofs/issues/523
%% enable the caller to handle the return value as EOF
{error, eof};
_ ->
{error, Cause}
end
Expand Down Expand Up @@ -828,7 +830,7 @@ get_obj_for_new_cntnr(#?METADATA{ksize = KSize,
{line, ?LINE}, [{offset, Offset + HeaderSize},
{length, RemainSize},
{body, Cause}]]),
{error, {abort, Cause}};
{error, unexpected_len};
_ ->
{error, Cause}
end
Expand Down

1 comment on commit dc9b948

@yosukehara
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

Please sign in to comment.