summaryrefslogtreecommitdiff
path: root/examples/c/ex_all.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/c/ex_all.c')
-rw-r--r--examples/c/ex_all.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/c/ex_all.c b/examples/c/ex_all.c
index c476e6c61c0..78917f4e54d 100644
--- a/examples/c/ex_all.c
+++ b/examples/c/ex_all.c
@@ -68,11 +68,6 @@ cursor_ops(WT_SESSION *session)
session, "table:mytable", NULL, NULL, &cursor);
/*! [Open a cursor] */
- /*! [Open a cache-resident cursor] */
- ret = session->open_cursor(
- session, "table:mytable", NULL, "cache_resident=true", &cursor);
- /*! [Open a cache-resident cursor] */
-
{
WT_CURSOR *duplicate;
const char *key = "some key";
@@ -376,10 +371,15 @@ session_ops(WT_SESSION *session)
cursor_ops(session);
/*! [Create a table] */
- ret = session->create(session, "table:mytable",
- "key_format=S,value_format=S");
+ ret = session->create(session,
+ "table:mytable", "key_format=S,value_format=S");
/*! [Create a table] */
+ /*! [Create a cache-resident object] */
+ ret = session->create(session,
+ "table:mytable", "key_format=r,value_format=S,cache_resident=true");
+ /*! [Create a cache-resident object] */
+
checkpoint_ops(session);
/*! [Drop a table] */