GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MONGOC_CLIENT_SESSION_WITH_TRANSACTION_CB_T(3) libmongoc MONGOC_CLIENT_SESSION_WITH_TRANSACTION_CB_T(3)

typedef bool (*mongoc_client_session_with_transaction_cb_t) (

mongoc_client_session_t *session,
void *ctx,
bson_t **reply,
bson_error_t *error);


Provide this callback to mongoc_client_session_with_transaction(). The callback should run a sequence of operations meant to be contained within a transaction. The callback should not attempt to start or commit transactions.

  • session: A mongoc_client_session_t.
  • ctx: A void* set to the the user-provided ctx passed to mongoc_client_session_with_transaction().
  • reply: An optional location for a bson_t or NULL. The callback should set this if it runs any operations against the server and receives replies.
  • error: A bson_error_t. The callback should set this if it receives any errors while running operations against the server.

Returns true for success and false on failure. If cb returns false then it should also set error.

SEE ALSO:

mongoc_client_session_with_transaction()



MongoDB, Inc

2009-present, MongoDB, Inc.

July 3, 2025 1.30.4

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.