Return properly shaped tuple.

This commit is contained in:
Gregory Burd 2012-06-11 23:39:04 +01:00
parent 669f589d0c
commit acbcf9d601

View file

@ -419,8 +419,8 @@ do_transact([{put, Key, Value}], State) ->
do_put(Key, Value, State);
do_transact([{delete, Key}], State) ->
do_put(Key, ?TOMBSTONE, State);
do_transact([], _State) ->
ok;
do_transact([], State) ->
{ok, State};
do_transact(TransactionSpec, State=#state{ nursery=Nursery, top=Top }) ->
{ok, Nursery2} = hanoidb_nursery:transact(TransactionSpec, Nursery, Top),
{ok, State#state{ nursery=Nursery2 }}.