summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2012-08-09 10:35:22 +1000
committerMichael Cahill <michael.cahill@wiredtiger.com>2012-08-09 10:35:22 +1000
commitdda89a2546072b2041c9fc33e3768cf525fc1e9d (patch)
tree23924ca105d10e59ee5f589fdc18d87b1a9214ba /examples
parent18d0434b0109809f139b89d8081ba81736e7a072 (diff)
downloadmongo-dda89a2546072b2041c9fc33e3768cf525fc1e9d.tar.gz
../examples/c/ex_all.c:474: warning: ‘txn_examples’ defined but not used
Diffstat (limited to 'examples')
-rw-r--r--examples/c/ex_all.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/examples/c/ex_all.c b/examples/c/ex_all.c
index a852334d2e4..9b883a66879 100644
--- a/examples/c/ex_all.c
+++ b/examples/c/ex_all.c
@@ -54,6 +54,7 @@ int cursor_search_near(WT_CURSOR *cursor);
int hot_backup(WT_SESSION *session);
int pack_ops(WT_SESSION *session);
int session_ops(WT_SESSION *session);
+int transaction_ops(WT_CONNECTION *conn, WT_SESSION *session);
const char *progname;
@@ -385,8 +386,6 @@ session_ops(WT_SESSION *session)
ret = session->reconfigure(session, "isolation=snapshot");
/*! [Reconfigure a session] */
- cursor_ops(session);
-
/*! [Create a table] */
ret = session->create(session,
"table:mytable", "key_format=S,value_format=S");
@@ -397,8 +396,6 @@ session_ops(WT_SESSION *session)
"table:mytable", "key_format=r,value_format=S,cache_resident=true");
/*! [Create a cache-resident object] */
- checkpoint_ops(session);
-
/*! [Drop a table] */
ret = session->drop(session, "table:mytable", NULL);
/*! [Drop a table] */
@@ -469,8 +466,8 @@ session_ops(WT_SESSION *session)
return (ret);
}
-static int
-txn_examples(WT_CONNECTION *conn, WT_SESSION *session)
+int
+transaction_ops(WT_CONNECTION *conn, WT_SESSION *session)
{
WT_CURSOR *cursor;
int ret;