summaryrefslogtreecommitdiff
path: root/src/docs
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2015-05-28 17:35:17 +1000
committerMichael Cahill <michael.cahill@mongodb.com>2015-05-28 17:35:17 +1000
commit62e5ee40ad51fb924dec22a06926329a3bde359a (patch)
tree13f3556164ca43a921fba3eb9d479a4f7784808c /src/docs
parentd539e55208a672b948448e3a885dbf8732b83a69 (diff)
parent5258cbc9c39616778b3a7fd9f3f5bc37ebb24e0d (diff)
downloadmongo-62e5ee40ad51fb924dec22a06926329a3bde359a.tar.gz
Merge branch 'develop' into partial-logging
Diffstat (limited to 'src/docs')
-rw-r--r--src/docs/transactions.dox21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/docs/transactions.dox b/src/docs/transactions.dox
index 8b57152cf52..bbbd2d52296 100644
--- a/src/docs/transactions.dox
+++ b/src/docs/transactions.dox
@@ -127,4 +127,25 @@ re-configured on a per-session basis:
@snippet ex_all.c session isolation re-configuration
+@section transaction_named_snapshots Named Snapshots
+
+Applications can create named snapshots by calling WT_SESSION::snapshot
+with a configuration that includes <code>"name=foo"</code>.
+This configuration creates a new named snapshot, as if a snapshot isolation
+transaction were started at the time of the WT_SESSION::snapshot call.
+
+Subsequent transactions can be started "as of" that snapshot by calling
+WT_SESSION::begin_transaction with a configuration that includes
+<code>snapshot=foo</code>. That transaction will run at snapshot isolation
+as if the transaction started at the time of the WT_SESSION::snapshot
+call that created the snapshot.
+
+Named snapshots keep data pinned in cache as if a real transaction were
+running for the time that the named transaction is active. The resources
+associated with named snapshots should be released by calling
+WT_SESSION::snapshot with a configuration that includes
+<code>"drop="</code>. See WT_SESSION::snapshot documentation for details of
+the semantics supported by the drop configuration.
+
+Named snapshots are not durable: they do not survive WT_CONNECTION::close.
*/