Skip to content

Commit

Permalink
Use transform_selector on Selector in delete/3 so that the selector w…
Browse files Browse the repository at this point in the history
…orks.
  • Loading branch information
Kelly McLaughlin authored and jkvor committed Feb 3, 2010
1 parent 338e366 commit 2e34698
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/emongo.erl
Expand Up @@ -188,7 +188,7 @@ delete(PoolId, Collection) ->

delete(PoolId, Collection, Selector) ->
{Pid, Pool} = gen_server:call(?MODULE, {pid, PoolId}, infinity),
Packet = emongo_packet:delete(Pool#pool.database, Collection, Pool#pool.req_id, Selector),
Packet = emongo_packet:delete(Pool#pool.database, Collection, Pool#pool.req_id, transform_selector(Selector)),
emongo_conn:send(Pid, Pool#pool.req_id, Packet).

%%------------------------------------------------------------------------------
Expand Down Expand Up @@ -484,4 +484,4 @@ hex0(13) -> $d;
hex0(14) -> $e;
hex0(15) -> $f;
hex0(I) -> $0 + I.


0 comments on commit 2e34698

Please sign in to comment.