---
name: "mongoc_read_prefs_is_valid"
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_read_prefs_is_valid"
---

# mongoc\_read\_prefs\_is\_valid(3)

## SYNOPSIS

```
bool
mongoc_read_prefs_is_valid (const mongoc_read_prefs_t *read_prefs);
```

## PARAMETERS

- •

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

## DESCRIPTION

Performs a consistency check of **read\_prefs** to ensure it makes sense and can be satisfied.

This only performs local consistency checks.

## RETURNS

Returns true if the read pref is valid.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
