---
name: "mongoc_transaction_opts_set_read_concern"
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_transaction_opts_set_read_concern"
---

# mongoc\_transaction\_opts\_set\_read\_concern(3)

## SYNOPSIS

```
void
mongoc_transaction_opts_set_read_concern (mongoc_transaction_opt_t *opts,
                                          const mongoc_read_concern_t *read_concern);
```

Configure the transaction's read concern. The argument is copied into the struct and can be freed after calling this function.

## PARAMETERS

- •

  **opts**: A *mongoc\_transaction\_opt\_t*.

- •

  **read\_concern**: A *mongoc\_read\_concern\_t*.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
