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