Fix gen_server style return value

This commit is contained in:
UENISHI Kota 2015-10-14 16:22:11 +09:00
parent 63612c8823
commit 07ceff095a

View file

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