MONGOC_CLIENT...RT_TRANSACTION(3)
π MONGOC_CLIENT...RT_TRANSACTION(3) π
okay bestie, welcome to the libmongoc corner of the manual β this one's about the abort button on a multi-document transaction, and honestly? it's giving "we tried, it didn't slay, roll it back" π
β¨ SYNOPSIS β¨
bool
mongoc_client_session_abort_transaction (mongoc_client_session_t *session,
bson_error_t *error);
Abort a multi-document transaction. that's the whole assignment π«Ά
πΈ PARAMETERS πΈ
sessionβ amongoc_client_session_t, the session whose transaction you're about to shut down. your main character struct πerrorβ an optional location for abson_error_t, orNULLif you're built different and don't want the tea (no error info for you).
π₯ RETURN π₯
Returns true if the transaction was aborted. Returns false and sets error if there are invalid arguments, like a session with no transaction in progress β yeah, you can't abort a vibe that doesn't exist, sorry π
Network or server errors are ignored. like, completely. not even acknowledged. (they said not my problem π)
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
real talk: if error gets set, it's about your arguments being invalid β not about the network or the server being messy. those get ignored, no cap.
later bestie π this was libmongoc 2.5.6, dated Oct 09, 2026 β go forth and abort those transactions β¨π¦
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms