[mongodb-user] Java driver question

36 views
Skip to first unread message

ypai

unread,
May 19, 2010, 6:42:20 PM5/19/10
to mongod...@googlegroups.com
When calling
DBObject errors = db.getLastError();

Is it necessary to do:
db.requestStart();

// do some operation
db.update( ... );

// check status of last operation
DBObject errors = db.getLastError();

db.requestDone();


- Y


--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.

Eliot Horowitz

unread,
May 19, 2010, 7:40:51 PM5/19/10
to mongod...@googlegroups.com
Yes - that is the correct thing to do.
Reply all
Reply to author
Forward
0 new messages