1MONGOC_CLIENT_SESSION_COMMIT_TRANSAClMTiOIbNOmGNoO(nC3g_)oCcLIENT_SESSION_COMMIT_TRANSACTION(3)
2
3
4
6 mongoc_client_session_commit_transaction - mongoc_client_session_com‐
7 mit_transaction()
8
10 bool
11 mongoc_client_session_commit_transaction (mongoc_client_session_t *session,
12 bson_t *reply,
13 bson_error_t *error);
14
15 Commit a multi-document transaction.
16
18 · session: A mongoc_client_session_t.
19
20 · reply: An optional uninitialized bson_t to receive the server reply,
21 or NULL.
22
23 · error: An optional location for a bson_error_t or NULL.
24
26 Returns true if the transaction was committed. Returns false and sets
27 error if there are invalid arguments, such as a session with no trans‐
28 action in progress, or if there is a server or network error.
29
30 If a reply is supplied, it is always initialized and must be freed with
31 bson_destroy().
32
34 MongoDB, Inc
35
37 2017-present, MongoDB, Inc
38
39
40
41
421.17.4 FebMO0N4G,OC2_0C2L1IENT_SESSION_COMMIT_TRANSACTION(3)