From ffa7b6a54da522427e6afe31fc336b68e9fe8f9a Mon Sep 17 00:00:00 2001 From: Alex Gorrod Date: Fri, 22 May 2015 05:49:33 +0000 Subject: 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. --- src/include/txn.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include/txn.h') 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; }; -- cgit v1.2.1