Ubuntu Manpages

  • client: A mongoc_client_t.
  • opts: An optional mongoc_session_opt_t.
  • error: A bson_error_t.

If successful, this function returns a newly allocated mongoc_client_session_t that should be freed with mongoc_client_session_destroy() when no longer in use. On error, returns NULL and sets error.

This function can fail if the driver is not built with crypto support, if opts is misconfigured, or if the session is configured with options that the server does not support.

MongoDB, Inc

2017-present, MongoDB, Inc