Fix gen_server style return value #9

Merged
kuenishi merged 1 commit from kuenishi-patch-1 into master 2015-10-14 07:34:07 +00:00

View file

@ -496,7 +496,7 @@ do_write_head2(File, Offset, Chunk, Depth, STime, TO,
when Retry == partition; Retry == bad_epoch; Retry == wedged -> when Retry == partition; Retry == bad_epoch; Retry == wedged ->
do_write_head(File, Offset, Chunk, Depth, STime, TO, S); do_write_head(File, Offset, Chunk, Depth, STime, TO, S);
{error, written}=Err -> {error, written}=Err ->
Err; {reply, Err, S};
{error, not_written} -> {error, not_written} ->
exit({todo_should_never_happen,?MODULE,?LINE, exit({todo_should_never_happen,?MODULE,?LINE,
iolist_size(Chunk)}) iolist_size(Chunk)})