logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Author

       MongoDB, Inc

Parameters

reply: A non-NULL pointer to overwritablestorage for a bson_t to contain the results.

       • label: The label to test for, such as "TransientTransactionError" or "UnknownTransactionCommitResult".

Returns

       Returns true if reply contains the error label.

Synopsis

          bool
          mongoc_error_has_label (const bson_t *reply, const char *label);

       Test  whether  a  reply  from  a  failed  operation includes a specific error label. See ErrorLabels for
       details, and see mongoc_client_session_start_transaction() for example code that demonstrates their use.

See Also