mongoc_write_concern_set_w() — MongoDB C Driver 1.6.3

- MongoDB C Driver 1.6.3 »
- API Reference »
- mongoc_write_concern_t

# mongoc_write_concern_set_w()

## Synopsis

    void
    mongoc_write_concern_set_w (mongoc_write_concern_t *write_concern, int32_t w);

## Parameters

- `write_concern`: A mongoc_write_concern_t.
- `w`: A positive `int32_t` or zero.

## Description

Sets the `w` value for the write concern. See mongoc_write_concern_t for more information on this setting.

Created using Sphinx 1.5.3, based on Sphinx Readable Theme.