DOKK / manpages / debian 11 / libmongoc-doc / mongoc_client_session_get_cluster_time.3.en
MONGOC_CLIENT_SESSION_GET_CLUSTER_TIME(3) libmongoc MONGOC_CLIENT_SESSION_GET_CLUSTER_TIME(3)

mongoc_client_session_get_cluster_time - mongoc_client_session_get_cluster_time()

const bson_t *
mongoc_client_session_get_cluster_time (const mongoc_client_session_t *session);


Get the session's clusterTime, as a BSON document.

session: A mongoc_client_session_t.

A bson_t you must not modify or free. If the session has not been used for any operation and you have not called mongoc_client_session_advance_cluster_time, then the returned value is NULL.

MongoDB, Inc

2017-present, MongoDB, Inc

June 4, 2021 1.17.6