mongoc_read_concern_set_level()

Synopsis

bool
mongoc_read_concern_set_level (mongoc_read_concern_t *read_concern,
                               const char *level);

Parameters

Description

Sets the read concern level. See mongoc_read_concern_t for details.

If the struct has been used in any operation it is “frozen”, and calling this function will not alter the read concern level.

Returns

Returns true if the read concern level was set, or false if the struct is frozen.