mongoc_session_opts_get_snapshot_time()

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.