Error handling in the new mongodb C driver

In the old legacy C driver, I had all my transactions wrapped in a loop to reconnect and retry during a dropped connection (MONGO_IO_ERROR) or other unrecognized errors. Is this still needed with the new driver or is it handling an internal connection? I couldn't find any documentation on bson_error_t. My guess is that this tends to contain error codes returned by mongodb, such as how duplicate insert was available with the getlasterror command in the legacy C driver? Is there a list of common ones?

+3
mongodb mongodb-c


source to share


No one has answered this question yet

Check out similar questions:

1299
How can I query MongoDB with "how"?
825
How to delete MongoDB database from command line?
619
MongoDB vs Kassandra
405
Delete everything in MongoDB database
five
nodejs mongodb driver disconnect idle connection
five
Error handling in mongo C driver 1.2.0
4
MongoDB processing disconnect / reconnect with Node
3
Mongodb not logged in for admin to run listDatabases command
2
work on ycsb on mongodb
0
Node.js: How to deal with Write MongoDB error?



All Articles
Loading...
X
Show
Funny
Dev
Pics