diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2012-08-08 11:01:58 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2012-08-08 11:01:58 +1000 |
commit | 1ad52667ec96347f8055e179d01eb51bd2d83662 (patch) | |
tree | b105026f14251e8e0c25d3ddd86c4f6eac4c49ee /examples/c/ex_all.c | |
parent | 046964bb11c1c8545eaff7a53182a43a272e217d (diff) | |
download | mongo-1ad52667ec96347f8055e179d01eb51bd2d83662.tar.gz |
Add support for read-committed isolation.
Operations have transactionally-consistent reads, wherre the snapshot is
updated automatically (when the session reads its first page).
Add a session-level "isolation" setting replacing the one in open_cursor that
was never implemented. This setting applies to both non-transactional
operations and is the default isolation level for transactions in the session
if non "isolation" setting is specified to WT_SESSION::begin_transaction.
closes #289
Diffstat (limited to 'examples/c/ex_all.c')
-rw-r--r-- | examples/c/ex_all.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/c/ex_all.c b/examples/c/ex_all.c index 0faa6187a66..7057a2272c3 100644 --- a/examples/c/ex_all.c +++ b/examples/c/ex_all.c @@ -381,6 +381,10 @@ session_ops(WT_SESSION *session) { int ret; + /*! [Reconfigure a session] */ + ret = session->reconfigure(session, "isolation=snapshot"); + /*! [Reconfigure a session] */ + cursor_ops(session); /*! [Create a table] */ |