Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Apr 23, 2019
1 parent ceb6eb2 commit f640ad2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/kvs.erl
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ all(Tab,#kvs{mod=DBA}) ->
lists:flatten([ rnorm(rname(Tab),DBA:all(T)) || T <- rlist(Tab) ]).
index(Tab, Key, Value,#kvs{mod=DBA}) ->
lists:flatten([ rnorm(rname(Tab),DBA:index(T, Key, Value)) || T <- rlist(Tab) ]).
next_id(Tab, Incr, KVX) when is_list(Tab) -> next_id(list_to_atom(Tab), Incr, KVX);
next_id(Tab, Incr,#kvs{mod=DBA}) ->
DBA:next_id(case table(Tab) of #table{} -> atom_to_list(Tab); _ -> Tab end, Incr).

Expand Down

0 comments on commit f640ad2

Please sign in to comment.