Scroll to navigation

MONGOC_SESSION_OPTS_GET_SNAPSHOT_TIME(3) libmongoc MONGOC_SESSION_OPTS_GET_SNAPSHOT_TIME(3)

SYNOPSIS

bool
mongoc_session_opts_get_snapshot_time (const mongoc_session_opt_t *opts,

uint32_t *timestamp,
uint32_t *increment);


Get the snapshot time previously configured with mongoc_session_opts_set_snapshot_time() <>. Returns false and leaves timestamp and increment unmodified if no snapshot time has been configured.

PARAMETERS

  • opts: A mongoc_session_opt_t <>.
  • timestamp: A pointer to a uint32_t to receive the timestamp component.
  • increment: A pointer to a uint32_t to receive the increment component.

Author

MongoDB, Inc

Copyright

2009-present, MongoDB, Inc.

August 21, 2026 2.5.0