---
name: "mongoc_client_session_get_dirty"
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_client_session_get_dirty"
---

# mongoc\_client\_session\_get\_dirty(3)

## SYNOPSIS

```
bool
mongoc_client_session_get_dirty (const mongoc_client_session_t *session);
```

Indicates whether **session** has been marked "dirty" as defined in the *driver sessions specification*.

## PARAMETERS

- •

  **session**: A const *mongoc\_client\_session\_t*.

## DESCRIPTION

This function is intended for use by drivers that wrap libmongoc. It is not useful in client applications.

## RETURNS

A boolean indicating whether the session has been marked "dirty".

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
