Skip to content

Commit

Permalink
badmatch in the new write_blocks section
Browse files Browse the repository at this point in the history
  • Loading branch information
Cliff Moon committed Jul 10, 2010
1 parent a45809f commit 375b28d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/luwak_io.erl
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ write_blocks(Riak, _File, PartialStartBlock, Start, Data, BlockSize, Written)
<<Head:PartialStart/binary, Left/binary>> = PartialStartData,
if
byte_size(Left) > DataSize ->
<<_:DataSize/binary, Tail>> = Left,
<<_:DataSize/binary, Tail/binary>> = Left,
<<Head/binary, Data/binary, Tail/binary>>;
true ->
<<Head/binary, Data/binary>>
Expand Down

0 comments on commit 375b28d

Please sign in to comment.