diff options
author | Alexey Anisimov <alexey.anisimov@mongodb.com> | 2022-02-21 14:08:15 +1100 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-02-21 03:39:19 +0000 |
commit | c0269ba59ae24b89c0d4a44e7abbcc318f1105e1 (patch) | |
tree | abf59136bf28abb73af5cffb3f009756b3af9d67 /src/third_party/wiredtiger/src/include/txn.h | |
parent | 215311b673962b7c29b8dc435f95e0d70f8ad438 (diff) | |
download | mongo-c0269ba59ae24b89c0d4a44e7abbcc318f1105e1.tar.gz |
Import wiredtiger: ca4ffa5ac30b7ec74eb754c9c56489b6670feda3 from branch mongodb-master
ref: 8edcffb096..ca4ffa5ac3
for: 6.0.0
WT-8170 Reduce complexity of timestamp usage assertion API code
Diffstat (limited to 'src/third_party/wiredtiger/src/include/txn.h')
-rw-r--r-- | src/third_party/wiredtiger/src/include/txn.h | 43 |
1 files changed, 20 insertions, 23 deletions
diff --git a/src/third_party/wiredtiger/src/include/txn.h b/src/third_party/wiredtiger/src/include/txn.h index 8f222bcadbb..7c60dfc23bb 100644 --- a/src/third_party/wiredtiger/src/include/txn.h +++ b/src/third_party/wiredtiger/src/include/txn.h @@ -242,6 +242,8 @@ struct __wt_txn_op { uint32_t flags; }; +#define WT_TS_VERBOSE_PREFIX "unexpected timestamp usage: " + /* * WT_TXN -- * Per-session transaction context. @@ -323,29 +325,24 @@ struct __wt_txn { */ /* AUTOMATIC FLAG VALUE GENERATION START 0 */ -#define WT_TXN_AUTOCOMMIT 0x000001u -#define WT_TXN_ERROR 0x000002u -#define WT_TXN_HAS_ID 0x000004u -#define WT_TXN_HAS_SNAPSHOT 0x000008u -#define WT_TXN_HAS_TS_COMMIT 0x000010u -#define WT_TXN_HAS_TS_DURABLE 0x000020u -#define WT_TXN_HAS_TS_PREPARE 0x000040u -#define WT_TXN_IGNORE_PREPARE 0x000080u -#define WT_TXN_PREPARE 0x000100u -#define WT_TXN_PREPARE_IGNORE_API_CHECK 0x000200u -#define WT_TXN_READONLY 0x000400u -#define WT_TXN_RUNNING 0x000800u -#define WT_TXN_SHARED_TS_DURABLE 0x001000u -#define WT_TXN_SHARED_TS_READ 0x002000u -#define WT_TXN_SYNC_SET 0x004000u -#define WT_TXN_TS_ROUND_PREPARED 0x008000u -#define WT_TXN_TS_ROUND_READ 0x010000u -#define WT_TXN_TS_WRITE_ALWAYS 0x020000u -#define WT_TXN_TS_WRITE_MIXED_MODE 0x040000u -#define WT_TXN_TS_WRITE_NEVER 0x080000u -#define WT_TXN_TS_WRITE_ORDERED 0x100000u -#define WT_TXN_UPDATE 0x200000u -#define WT_TXN_VERB_TS_WRITE 0x400000u +#define WT_TXN_AUTOCOMMIT 0x00001u +#define WT_TXN_ERROR 0x00002u +#define WT_TXN_HAS_ID 0x00004u +#define WT_TXN_HAS_SNAPSHOT 0x00008u +#define WT_TXN_HAS_TS_COMMIT 0x00010u +#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 /* AUTOMATIC FLAG VALUE GENERATION STOP 32 */ uint32_t flags; |