MONGOC_CLIENT_SESSION_GET_LSID(3)

πŸ’– MONGOC_CLIENT_SESSION_GET_LSID(3) πŸ’–

okay so welcome to the libmongoc manual, bestie ✨ this one is all about grabbing the server-side β€œlogical session ID” β€” the lsid β€” that’s associated with a mongoc_client_session_t, and getting it back as a BSON document. it’s giving very specific, very useful, no cap πŸ’…

✨ SYNOPSIS ✨

const bson_t *
mongoc_client_session_get_lsid (mongoc_client_session_t *session);

Get the server-side β€œlogical session ID” associated with this mongoc_client_session_t as a BSON document. periodt 🫢

πŸŽ€ PARAMETERS πŸŽ€

  • session β€” a mongoc_client_session_t. that’s the one, the main character, the session whose lsid we’re getting πŸ’–

πŸ¦‹ RETURNS πŸ¦‹

A bson_t that is valid only for the lifetime of session β€” so its whole validity situation is tied to session, and that’s the vibe check πŸ˜­πŸ’€

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc

2009-present, MongoDB, Inc.


xoxo, bestie πŸ’… this was from the libmongoc manual, version 2.5.6, dated Oct 09, 2026 πŸŽ€βœ¨

πŸ“¦ where this page comes from