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 β€” A mongoc_client_session_t. this is the session we're checking on, bestie.
  • timestamp β€” A pointer to a uint32_t to receive the timestamp component. drop that timestamp part off right here.
  • increment β€” A pointer to a uint32_t to receive the increment component. and the increment part goes right here.

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” yes ma'am, that's the author. iconic. πŸ’…

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