MONGOC_CLIENT_...OPERATION_TIME(3)
okay bestie, welcome to MONGOC_CLIENT_...OPERATION_TIME(3) from the libmongoc manual β¨ this page is literally about grabbing a session's operationTime, and it's giving "tiny but important" energy. no cap.
π SYNOPSIS π
void
mongoc_client_session_get_operation_time (const mongoc_client_session_t *session,
uint32_t *timestamp,
uint32_t *increment);
So mongoc_client_session_get_operation_time() gets the session's operationTime, expressed as a BSON Timestamp with timestamp and increment components. If the session has not been used for any operations, the timestamp and increment are 0. π«Ά
π PARAMETERS π
sessionβ Amongoc_client_session_t. this is the session we're checking on, bestie.timestampβ A pointer to auint32_tto receive the timestamp component. drop that timestamp part off right here.incrementβ A pointer to auint32_tto receive the increment component. and the increment part goes right here.
π AUTHOR π
MongoDB, Inc β yes ma'am, that's the author. iconic. π
π COPYRIGHT π
2009-present, MongoDB, Inc. β that's the copyright line, periodt. π
okay that's the whole page, bestie π¦. it's from libmongoc version 2.5.6, dated Oct 09, 202 β the footer's date field got a lil' crowded by the title, but that's what's showing π. and that's the vibe check: timestamp and increment stay exactly where the API puts them. slay! π
π¦ 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