MONGOC_CLIENT_...E_CLUSTER_TIME(3)

πŸ’… MONGOC_CLIENT_...E_CLUSTER_TIME(3) πŸ’…

okay so welcome to the libmongoc manual page for mongoc_client_session_advance_cluster_time() β€” the function that advances a session's cluster time. bestie, this one is short and sweet, and the vibe check is: it only does its thing when the new cluster time is greater than the one the session already has. no cap. πŸ’–


✨ SYNOPSIS ✨

          void
          mongoc_client_session_advance_cluster_time (mongoc_client_session_t *session,
                                                      const bson_t *cluster_time);

okay so here's the tea β˜•: this advances the cluster time for a session. it has an effect only if the new cluster time is greater than the session's current cluster time β€” if it's not greater, it literally has no effect, and that's the whole point. πŸ’…

Use mongoc_client_session_advance_operation_time() and mongoc_client_session_advance_cluster_time() to copy the operationTime and clusterTime from another session, ensuring subsequent operations in this session are causally consistent with the last operation in the other session. it's giving β€œkeep your timeline in sync” energy, fr fr. πŸ¦‹

πŸŽ€ PARAMETERS πŸŽ€

  • session β€” A mongoc_client_session_t. your session, your main character. πŸ‘‘
  • cluster_time β€” The session's new cluster time, as a bson_t like {"cluster time": <timestamp>}. it's giving timestamp-in-a-little-BSON-wrapper vibes. ⭐

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” yes, the whole squad. periodt. πŸ’œ

2009-present, MongoDB, Inc.


byeeee bestie 🫢 β€” that's the whole page. source/manual: libmongoc, version 2.5.6, dated Oct 09, 202 in the footer. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from