diff options
author | Etienne Petrel <etienne.petrel@mongodb.com> | 2022-04-22 01:16:12 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-22 01:46:54 +0000 |
commit | a5f68db52a7b45700e6885eb6ec6227c503c6f80 (patch) | |
tree | e682afce2b0d868ade3c2759530a4d374b9383ba /src/third_party/wiredtiger/src/include/txn.h | |
parent | 834380e8f40188d8b4c33c11875fa76915b7eced (diff) | |
download | mongo-a5f68db52a7b45700e6885eb6ec6227c503c6f80.tar.gz |
Import wiredtiger: 3fa9aed7f25f1af8b1d71b72ab45c21817e8150c from branch mongodb-master
ref: 0cbb7bdf05..3fa9aed7f2
for: 6.1.0-rc0
WT-5927 Make checkpoint cursors work again
Diffstat (limited to 'src/third_party/wiredtiger/src/include/txn.h')
-rw-r--r-- | src/third_party/wiredtiger/src/include/txn.h | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/src/third_party/wiredtiger/src/include/txn.h b/src/third_party/wiredtiger/src/include/txn.h index 7c60dfc23bb..f34f4679fc3 100644 --- a/src/third_party/wiredtiger/src/include/txn.h +++ b/src/third_party/wiredtiger/src/include/txn.h @@ -290,6 +290,11 @@ struct __wt_txn { */ wt_timestamp_t prepare_timestamp; + /* + * Timestamp used for reading via a checkpoint cursor instead of txn_shared->read_timestamp. + */ + wt_timestamp_t checkpoint_read_timestamp; + /* Array of modifications by this transaction. */ WT_TXN_OP *mod; size_t mod_alloc; @@ -333,22 +338,23 @@ struct __wt_txn { #define WT_TXN_HAS_TS_DURABLE 0x00020u #define WT_TXN_HAS_TS_PREPARE 0x00040u #define WT_TXN_IGNORE_PREPARE 0x00080u -#define WT_TXN_PREPARE 0x00100u -#define WT_TXN_PREPARE_IGNORE_API_CHECK 0x00200u -#define WT_TXN_READONLY 0x00400u -#define WT_TXN_RUNNING 0x00800u -#define WT_TXN_SHARED_TS_DURABLE 0x01000u -#define WT_TXN_SHARED_TS_READ 0x02000u -#define WT_TXN_SYNC_SET 0x04000u -#define WT_TXN_TS_ROUND_PREPARED 0x08000u -#define WT_TXN_TS_ROUND_READ 0x10000u -#define WT_TXN_UPDATE 0x20000u +#define WT_TXN_IS_CHECKPOINT 0x00100u +#define WT_TXN_PREPARE 0x00200u +#define WT_TXN_PREPARE_IGNORE_API_CHECK 0x00400u +#define WT_TXN_READONLY 0x00800u +#define WT_TXN_RUNNING 0x01000u +#define WT_TXN_SHARED_TS_DURABLE 0x02000u +#define WT_TXN_SHARED_TS_READ 0x04000u +#define WT_TXN_SYNC_SET 0x08000u +#define WT_TXN_TS_ROUND_PREPARED 0x10000u +#define WT_TXN_TS_ROUND_READ 0x20000u +#define WT_TXN_UPDATE 0x40000u /* AUTOMATIC FLAG VALUE GENERATION STOP 32 */ uint32_t flags; /* - * Zero or more bytes of value (the payload) immediately follows the WT_UPDATE structure. We use - * a C99 flexible array member which has the semantics we want. + * Zero or more bytes of value (the payload) immediately follows the WT_TXN structure. We use a + * C99 flexible array member which has the semantics we want. */ uint64_t __snapshot[]; }; |