MONGOC_CLIENT_SESSION_DESTROY(3)
π MONGOC_CLIENT_SESSION_DESTROY(3) π
okay bestie, welcome to the libmongoc glow-up page where we learn how to say bye to a session properly β¨
β¨ SYNOPSIS β¨
void
mongoc_client_session_destroy (mongoc_client_session_t *session);
π DESCRIPTION π
So like, this function ends a session, gives its session id back to the pool, and frees, like, all the client resources tied to that session. Cleanup queen behavior, no notes π
and listen β if there's a multi-document transaction in progress, this thing aborts it. no cap. so maybe wrap up your business first before you come for her π
also she's super chill: if session is NULL, she does absolutely nothing. does not care. does not read. does not respond. π
go peek at the example code for mongoc_client_session_t if you wanna see her in action π¦
πΈ PARAMETERS πΈ
session: Amongoc_client_session_t. that's the girl. that's who we're destroying (lovingly) π
β AUTHOR β
MongoDB, Inc β icons, honestly π«Ά
π COPYRIGHT π
2009-present, MongoDB, Inc. protect it at all costs π
and that's the tea, bestie π β libmongoc version 2.5.6, dated Oct 09, 2026, mwah ππ
π¦ 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