1MONGOC_WRITE_CONCERN_SET_FSYNC(3) libmongoc MONGOC_WRITE_CONCERN_SET_FSYNC(3)
2
3
4
6 mongoc_write_concern_set_fsync - mongoc_write_concern_set_fsync()
7
9 void
10 mongoc_write_concern_set_fsync (mongoc_write_concern_t *write_concern,
11 bool fsync_);
12
14 • write_concern: A mongoc_write_concern_t.
15
16 • fsync_: A boolean.
17
19 Sets if a fsync must be performed before indicating write success.
20
21 Beginning in version 1.9.0, this function can now alter the write con‐
22 cern after it has been used in an operation. Previously, using the
23 struct with an operation would mark it as "frozen" and calling this
24 function would log a warning instead instead of altering the write con‐
25 cern.
26
28 WARNING:
29 The fsync write concern is deprecated.
30
31 Please use mongoc_write_concern_set_journal() instead.
32
34 MongoDB, Inc
35
37 2017-present, MongoDB, Inc
38
39
40
41
421.23.1 Oct 20, 2022MONGOC_WRITE_CONCERN_SET_FSYNC(3)