Use {error, bad_checksum} directly
We previously copied {error, bad_csum} as it was used in the main FLU code. The protobufs stuff expects the full atom bad_checksum though.
This commit is contained in:
parent
679046600f
commit
303aad97e9
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ handle_call({write, Offset, ClientMeta, Data}, _From,
|
||||||
{error, {bad_csum, Bad}} ->
|
{error, {bad_csum, Bad}} ->
|
||||||
lager:error("Bad checksum on write; client sent ~p, we computed ~p",
|
lager:error("Bad checksum on write; client sent ~p, we computed ~p",
|
||||||
[ClientCsum, Bad]),
|
[ClientCsum, Bad]),
|
||||||
{{error, bad_csum}, Err + 1, U};
|
{{error, bad_checksum}, Err + 1, U};
|
||||||
TaggedCsum ->
|
TaggedCsum ->
|
||||||
case handle_write(FHd, FHc, F, TaggedCsum, Offset, Data, U) of
|
case handle_write(FHd, FHc, F, TaggedCsum, Offset, Data, U) of
|
||||||
{ok, NewU1} ->
|
{ok, NewU1} ->
|
||||||
|
|
Loading…
Reference in a new issue