summaryrefslogtreecommitdiff
path: root/examples/c/ex_all.c
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2012-08-03 09:09:48 +0000
committerKeith Bostic <keith@wiredtiger.com>2012-08-03 09:09:48 +0000
commitedae99f96983d852f9e3f12fbf6c5af3eee019aa (patch)
treee491fd27fe255f3221645647264471030d10cb53 /examples/c/ex_all.c
parente5158cfafdd15c622761d26bdd64bb322980257f (diff)
downloadmongo-edae99f96983d852f9e3f12fbf6c5af3eee019aa.tar.gz
Move the cache-resident configuration string from session.open_cursor
to session.create.
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] */