Skip to content

Commit

Permalink
MultiUpdate for update_sync
Browse files Browse the repository at this point in the history
  • Loading branch information
master committed Mar 11, 2011
1 parent 7f50bb5 commit 49ecb97
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/emongo.erl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
find_all_seq/3, fold_all_seq/5,
insert_seq/3, update_seq/6, delete_seq/3]).

-export([update_sync/5, delete_sync/3, insert_sync/3]).
-export([update_sync/5, update_sync/6, delete_sync/3, insert_sync/3]).

-export([drop_database/1]).

Expand Down Expand Up @@ -267,6 +267,9 @@ update_seq(Collection, Selector, Document, Upsert, MultiUpdate, Next) ->
update_sync(PoolId, Collection, Selector, Document, Upsert) ->
sequence(PoolId, update_seq(Collection, Selector, Document, Upsert, false, synchronous())).

update_sync(PoolId, Collection, Selector, Document, Upsert, MultiUpdate) ->
sequence(PoolId, update_seq(Collection, Selector, Document, Upsert, MultiUpdate, synchronous())).

%%------------------------------------------------------------------------------
%% delete
%%------------------------------------------------------------------------------
Expand Down

0 comments on commit 49ecb97

Please sign in to comment.