summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/examples
diff options
context:
space:
mode:
authorAlex Gorrod <alexander.gorrod@mongodb.com>2017-08-09 09:31:54 +1000
committerAlex Gorrod <alexander.gorrod@mongodb.com>2017-08-09 09:31:54 +1000
commit0e916653f6b009fb4f95eac4ad241fdc22f3a0b7 (patch)
treeec26a0f7c29182606618cfb8cfa36f150b877262 /src/third_party/wiredtiger/examples
parent687cefdca8a59d9a6d49ff58f19ddd2b6374537a (diff)
downloadmongo-0e916653f6b009fb4f95eac4ad241fdc22f3a0b7.tar.gz
Import wiredtiger: 698847557ce7b3a938bbc8334d64a9430e4dc786 from branch mongodb-3.6
ref: 2e9744d11a..698847557c for: 3.5.12 WT-3336 Review all jenkins jobs and ensure that they run with stats enabled and stat files are archived WT-3378 Create a workload where dirty cache usage is similar to eviction_checkpoint_target WT-3388 Online rollbackToStableTimestamp WT-3456 Investigate the impact of statistics logging when statistics are disabled WT-3458 Checkpoint should ignore stable_timestamp for logged tables WT-3470 Avoid a metadata cursor open for table open/drop WT-3471 Clear out each session's table cache WT-3472 WT_CURSOR.modify has incorrect API wrapping macros WT-3478 Coverity CID 1378760: Insecure data handling (TAINTED_SCALAR) WT-3479 resolving modify updates before writing them to the lookaside file causes snapshot isolation failures. WT-3480 WiredTiger connection close can hang joining async threads WT-3481 lsm merge span fails to collect chunks to span WT-3486 Discard obsolete updates as part of re-instantiating updates based on the lookaside table. WT-3489 Provide an API to reset the commit_timestamp during rollback WT-3490 WT_CURSOR.modify unaligned size_t access. WT-3494 __cursor_needvalue() calls __cursor_localkey(), not __cursor_localvalue()
Diffstat (limited to 'src/third_party/wiredtiger/examples')
-rw-r--r--src/third_party/wiredtiger/examples/c/ex_all.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/examples/c/ex_all.c b/src/third_party/wiredtiger/examples/c/ex_all.c
index 7dce4744db3..02237faf4e9 100644
--- a/src/third_party/wiredtiger/examples/c/ex_all.c
+++ b/src/third_party/wiredtiger/examples/c/ex_all.c
@@ -863,9 +863,17 @@ transaction_ops(WT_CONNECTION *conn, WT_SESSION *session)
/*! [query timestamp] */
}
+ /*! [set commit timestamp] */
+ error_check(conn->set_timestamp(conn, "commit_timestamp=2a"));
+ /*! [set commit timestamp] */
+
/*! [set oldest timestamp] */
error_check(conn->set_timestamp(conn, "oldest_timestamp=2a"));
/*! [set oldest timestamp] */
+
+ /*! [rollback to stable] */
+ error_check(conn->rollback_to_stable(conn, ""));
+ /*! [rollback to stable] */
}
/*! [Implement WT_COLLATOR] */