[CXX-910] how to set fsync for write concern Created: 13/May/16  Updated: 11/Sep/19  Resolved: 13/May/16

Status: Closed
Project: C++ Driver
Component/s: API
Affects Version/s: 3.0.1
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Judy Han [X] Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux ... 2.6.32-573.18.1.el6.x86_64 #1 SMP Wed Jan 6 11:20:49 EST 2016 x86_64 x86_64 x86_64 GNU/Linux



 Description   

I used to set fsync parameter by calling mongo::WriteConcern::fsync() in legacy C++ driver.
I am now using the new c++ driver, I am trying to use mongocxx::write_concern::fsync() but looks mongocxx::write_concern does not support fsync() any more. Is there a way to support confirmation of fsync from client API or it is not an option now?

Thanks!
Judy



 Comments   
Comment by Judy Han [X] [ 13/May/16 ]

Thanks for the clarification!

Comment by David Golden [ 13/May/16 ]

Hi, Judy.

You only need to set 'journal' now and the server handles the fsync as part of satisfying that write concern.

Regards,
David

Generated at Wed Feb 07 22:00:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.