---
name: "mongoc_transaction_opts_set_max_commit_time_ms"
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_max_commit_time_ms"
---

# mongoc\_transaction\_opts\_set\_max\_commit\_time\_ms(3)

## SYNOPSIS

```
void
mongoc_transaction_opts_set_max_commit_time_ms (mongoc_transaction_opt_t *opts,
                                                int64_t max_commit_time_ms);
```

Configure the transaction's max commit time, in milliseconds.

## PARAMETERS

- •

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

- •

  **int64\_t**: Timeout for commitTransaction, in milliseconds.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
