diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2015-05-22 05:49:33 +0000 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2015-05-22 05:49:33 +0000 |
commit | ffa7b6a54da522427e6afe31fc336b68e9fe8f9a (patch) | |
tree | 54ccce39df46bbf768ce7801ca98a9c1c1592a46 /src/include/txn.h | |
parent | c1fe0823534b0b693b96f7e85fd2298ccfaf2700 (diff) | |
download | mongo-ffa7b6a54da522427e6afe31fc336b68e9fe8f9a.tar.gz |
Updates to named snapshot implementation:
* Allow a snapshot from a running transaction, but enforce that
the transaction is and remains read only.
* Enhance test cases
* Fixup locking, so a call to snapshot appears atomic (i.e: drop and create
are wrapped in a single lock)
* Fixup naming in named snapshot source file to be consistent.
Diffstat (limited to 'src/include/txn.h')
-rw-r--r-- | src/include/txn.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/txn.h b/src/include/txn.h index 3472712ec35..3c030b222c6 100644 --- a/src/include/txn.h +++ b/src/include/txn.h @@ -160,6 +160,7 @@ struct __wt_txn { #define WT_TXN_HAS_ID 0x04 #define WT_TXN_HAS_SNAPSHOT 0x08 #define WT_TXN_NAMED_SNAPSHOT 0x10 -#define WT_TXN_RUNNING 0x20 +#define WT_TXN_READONLY 0x20 +#define WT_TXN_RUNNING 0x40 uint32_t flags; }; |