summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/include/timestamp_inline.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/include/timestamp_inline.h')
-rw-r--r--src/third_party/wiredtiger/src/include/timestamp_inline.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/include/timestamp_inline.h b/src/third_party/wiredtiger/src/include/timestamp_inline.h
index 8962970b3ea..6ccb7d3b5e3 100644
--- a/src/third_party/wiredtiger/src/include/timestamp_inline.h
+++ b/src/third_party/wiredtiger/src/include/timestamp_inline.h
@@ -70,6 +70,22 @@
(tw)->stop_txn = (upd)->txnid; \
} while (0)
+/* Copy the start values of a time window from another time window. */
+#define WT_TIME_WINDOW_COPY_START(dest, source) \
+ do { \
+ (dest)->durable_start_ts = (source)->durable_start_ts; \
+ (dest)->start_ts = (source)->start_ts; \
+ (dest)->start_txn = (source)->start_txn; \
+ } while (0)
+
+/* Copy the stop values of a time window from another time window. */
+#define WT_TIME_WINDOW_COPY_STOP(dest, source) \
+ do { \
+ (dest)->durable_stop_ts = (source)->durable_stop_ts; \
+ (dest)->stop_ts = (source)->stop_ts; \
+ (dest)->stop_txn = (source)->stop_txn; \
+ } while (0)
+
/*
* Initialize the fields in an aggregated time window to their defaults. The aggregated durable
* timestamp values represent the maximum durable timestamp over set of timestamps. These aggregated