Permalink
Browse files

tailable cursors bugfix

  • Loading branch information...
1 parent 6599946 commit ef1519c719b0add253b10d4a349eecf2045ba8d3 @SergejJurecko committed Mar 20, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/erlmongo.hrl
  2. +2 −2 src/mongoapi.erl
View
@@ -55,7 +55,7 @@ loop_fields(Tuple, [], _, _, _) ->
% mongo
-define(QUER_OPT_NONE, 0).
--define(QUER_OPT_CURSOR, 2).
+-define(QUER_OPT_CURSOR, 1).
-define(QUER_OPT_SLAVEOK, 4).
-define(QUER_OPT_NOTIMEOUT, 16).
View
@@ -306,9 +306,9 @@ getMore(Rec, Cursor) when is_list(Rec); is_binary(Rec) ->
{done, <<>>} ->
{done, []};
{done, Result} ->
- {done, mongodb:decoderec(Rec, Result)};
+ {done, mongodb:decode(Result)};
{ok, Result} ->
- {ok, mongodb:decoderec(Rec, Result)}
+ {ok, mongodb:decode(Result)}
end;
getMore(Rec, Cursor) ->
case mongodb:exec_getmore(Pool,name(element(1,Rec)), Cursor) of

0 comments on commit ef1519c

Please sign in to comment.