1MONGOC_CLIENT_SESSION_WITH_TRANSAMCOTNIlGOiONbC_m_CoCBnL_gIToE(cN3T)_SESSION_WITH_TRANSACTION_CB_T(3)
2
3
4
6 typedef bool (*mongoc_client_session_with_transaction_cb_t) (
7 mongoc_client_session_t *session,
8 void *ctx,
9 bson_t **reply,
10 bson_error_t *error);
11
12 Provide this callback to mongoc_client_session_with_transaction(). The
13 callback should run a sequence of operations meant to be contained
14 within a transaction. The callback should not attempt to start or com‐
15 mit transactions.
16
18 • session: A mongoc_client_session_t.
19
20 • ctx: A void* set to the the user-provided ctx passed to
21 mongoc_client_session_with_transaction().
22
23 • reply: An optional location for a bson_t or NULL. The callback should
24 set this if it runs any operations against the server and receives
25 replies.
26
27 • error: A bson_error_t. The callback should set this if it receives
28 any errors while running operations against the server.
29
31 Returns true for success and false on failure. If cb returns false then
32 it should also set error.
33
34 SEE ALSO:
35 mongoc_client_session_with_transaction()
36
37
39 MongoDB, Inc
40
42 2017-present, MongoDB, Inc
43
44
45
46
471.25.1 MNOoNvGO0C8_,CL2I0E2N3T_SESSION_WITH_TRANSACTION_CB_T(3)