Permalink
Browse files

Add comment on getLastError

  • Loading branch information...
1 parent e94cec0 commit ba810a99053c47367a846957c55d9f8a20bc1970 Tony Hannan committed May 24, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/mongo.erl
  2. +2 −2 src/mongo_query.erl
View
@@ -114,7 +114,7 @@ connection_mode (slave_ok, RsConn = {rs_connection, _, _}) -> mongo_replset:seco
% Every write inside an action() will use this write mode.
% unsafe = asynchronous write (no reply) and hence may silently fail;
% safe = synchronous write, wait for reply and fail if connection or write failure;
-% {safe, Params} = same as safe but with extra params for getlasterror, see its documentation.
+% {safe, Params} = same as safe but with extra params for getlasterror, see its documentation at http://www.mongodb.org/display/DOCS/getLastError+Command.
-type write_failure() :: {write_failure, error_code(), bson:utf8()}.
-type error_code() :: integer().
View
@@ -17,9 +17,9 @@
-type write() :: #insert{} | #update{} | #delete{}.
-type getlasterror_request() :: bson:document().
-% Parameters to getlasterror request.
+% Parameters to getlasterror request. See http://www.mongodb.org/display/DOCS/getLastError+Command.
-type getlasterror_reply() :: bson:document().
-% Reply to getlasterror request.
+% Reply to getlasterror request. See http://www.mongodb.org/display/DOCS/getLastError+Command.
-spec write (mongo_connect:dbconnection(), write(), getlasterror_request()) -> getlasterror_reply(). % QIO
%@doc Send write and getlasterror request to mongodb over connection and wait for and return getlasterror reply. Bad getlasterror params are ignored.

0 comments on commit ba810a9

Please sign in to comment.