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β Amongoc_client_session_t. your session, your main character. πcluster_timeβ The session's new cluster time, as abson_tlike{"cluster time": <timestamp>}. it's giving timestamp-in-a-little-BSON-wrapper vibes. β
π AUTHOR π
MongoDB, Inc β yes, the whole squad. periodt. π
π COPYRIGHT π
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
- 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