Fix case clause error.

This is a fix for commit dce62a8 originally targeted for
https://github.com/krestenkrab/hanoidb/issues/12 where an old file
descriptor is used when storing 2i (transact data) causes the tx log
to roll.
This commit is contained in:
Joseph Wayne Norton 2012-09-25 12:15:54 +09:00
parent b254a5e345
commit 1bbea4b87d

View file

@ -269,7 +269,8 @@ ensure_space(Nursery, NeededRoom, Top) ->
true ->
Nursery;
false ->
flush(Nursery, Top)
{ok, Nursery1} = flush(Nursery, Top),
Nursery1
end.
transact(Spec, Nursery, Top) ->