[CDRIVER-169] non-NULL write concern forces blocking read-response Created: 05/Sep/12  Updated: 19/Oct/16  Resolved: 14/Nov/12

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 0.7

Type: Improvement Priority: Major - P3
Reporter: Mongo Mania Assignee: Gary Murakami
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I would like to have the option to force mongo to perform a best efforts write of my data but at this risk of inserting/updating too slowly - I don't care about the status response.

It seems that the assumption is made that if write concern is non-NULL, I would obviously want to know the response - which in my case is not true.

Maybe make this optional.



 Comments   
Comment by Mongo Mania [ 14/Nov/12 ]

Thanks, i'll pull this down on the next release.

Comment by Gary Murakami [ 14/Nov/12 ]

This issue is resolved by commits for
CDRIVER-175 Implement default write acknowledgement with new MongoClient class

Specify a "w" value of 0 in the write concern struct, and an acknowledgment (getLastError) request will NOT be sent.

Generated at Wed Feb 07 21:08:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.