summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/examples/c/ex_all.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/examples/c/ex_all.c')
-rw-r--r--src/third_party/wiredtiger/examples/c/ex_all.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/third_party/wiredtiger/examples/c/ex_all.c b/src/third_party/wiredtiger/examples/c/ex_all.c
index b9792fbc82b..53c2ac9d95d 100644
--- a/src/third_party/wiredtiger/examples/c/ex_all.c
+++ b/src/third_party/wiredtiger/examples/c/ex_all.c
@@ -928,6 +928,8 @@ transaction_ops(WT_SESSION *session_arg)
error_check(conn->set_timestamp(conn, "stable_timestamp=2a"));
/*! [set stable timestamp] */
+ /* WT_CONNECTION.rollback_to_stable requires a timestamped checkpoint. */
+ error_check(session->checkpoint(session, NULL));
/*! [rollback to stable] */
error_check(conn->rollback_to_stable(conn, NULL));
/*! [rollback to stable] */
@@ -1045,12 +1047,12 @@ connection_ops(WT_CONNECTION *conn)
/*! [Configure method configuration] */
/*
- * Applications opening a cursor for the data-source object "my_data"
- * have an additional configuration option "entries", which is an
- * integer type, defaults to 5, and must be an integer between 1 and 10.
+ * Applications opening a cursor for the data-source object "my_data" have an additional
+ * configuration option "entries", which is an integer type, defaults to 5, and must be an
+ * integer between 1 and 10.
*
- * The method being configured is specified using a concatenation of the
- * handle name, a period and the method name.
+ * The method being configured is specified using a concatenation of the handle name, a period
+ * and the method name.
*/
error_check(conn->configure_method(
conn, "WT_SESSION.open_cursor", "my_data:", "entries=5", "int", "min=1,max=10"));