---
name: "mongoc_write_concern_get_fsync"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_write_concern_get_fsync"
---

# mongoc\_write\_concern\_get\_fsync(3)

**WARNING:**

Deprecated since version 1.4.0: Use *mongoc\_write\_concern\_get\_journal()* instead.

## SYNOPSIS

```
bool
mongoc_write_concern_get_fsync (const mongoc_write_concern_t *write_concern);
```

## PARAMETERS

- •

  **write\_concern**: A *mongoc\_write\_concern\_t*.

## DESCRIPTION

Fetches if an fsync should be performed before returning success on a write operation.

## RETURNS

Returns true if **fsync** is set as part of the write concern.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
