summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/include/wiredtiger.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/include/wiredtiger.in')
-rw-r--r--src/third_party/wiredtiger/src/include/wiredtiger.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/include/wiredtiger.in b/src/third_party/wiredtiger/src/include/wiredtiger.in
index ec50d871f90..d7dd8ac993b 100644
--- a/src/third_party/wiredtiger/src/include/wiredtiger.in
+++ b/src/third_party/wiredtiger/src/include/wiredtiger.in
@@ -743,6 +743,14 @@ struct __wt_cursor {
#endif
};
+/*! WT_SESSION::timestamp_transaction_uint timestamp types */
+typedef enum {
+ WT_TS_TXN_TYPE_COMMIT, /*!< Commit timestamp. */
+ WT_TS_TXN_TYPE_DURABLE, /*!< Durable timestamp. */
+ WT_TS_TXN_TYPE_PREPARE, /*!< Prepare timestamp. */
+ WT_TS_TXN_TYPE_READ /*!< Read timestamp. */
+} WT_TS_TXN_TYPE;
+
/*!
* All data operations are performed in the context of a WT_SESSION. This
* encapsulates the thread and transactional context of the operation.
@@ -1848,6 +1856,26 @@ struct __wt_session {
int __F(timestamp_transaction)(WT_SESSION *session, const char *config);
/*!
+ * Set a timestamp on a transaction numerically. Prefer this over @ref
+ * timestamp_transaction when the string parsing done in that method becomes a bottleneck.
+ *
+ * The WT_SESSION.timestamp_transaction_uint method can only be used at snapshot
+ * isolation.
+ *
+ * @requires_transaction
+ *
+ * @param session the session handle
+ * @param which the timestamp you wish to set. See @ref WT_TS_TXN_TYPE for available
+ * options, and @ref timestamp_transaction for constraints on when timestamps can be
+ * set.
+ * @param ts the timestamp.
+ * @errors
+ */
+ int __F(timestamp_transaction_uint)(WT_SESSION *session, WT_TS_TXN_TYPE which,
+ uint64_t ts);
+ /*! @} */
+
+ /*!
* Query the session's transaction timestamp state.
*
* The WT_SESSION.query_timestamp method can only be used at snapshot isolation.