summaryrefslogtreecommitdiff
path: root/examples/c/ex_all.c
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-12-15 09:35:54 -0500
committerKeith Bostic <keith@wiredtiger.com>2014-12-15 09:35:54 -0500
commit980165614f114dbcf02344ba7209ae77369bcb80 (patch)
tree952a89a49aa758ec177ed9ce491524d0c1c79c1f /examples/c/ex_all.c
parent4c26d2324bae1d7030b0142d50dbd2ccf11ddeb6 (diff)
parent5cf21acf8fd66876e71334cc09deac0a09e8ea91 (diff)
downloadmongo-980165614f114dbcf02344ba7209ae77369bcb80.tar.gz
Merge branch 'develop' into cursor-reconfigure
Conflicts: src/cursor/cur_metadata.c
Diffstat (limited to 'examples/c/ex_all.c')
-rw-r--r--examples/c/ex_all.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/c/ex_all.c b/examples/c/ex_all.c
index db418deed9d..cf5fb363c2f 100644
--- a/examples/c/ex_all.c
+++ b/examples/c/ex_all.c
@@ -524,6 +524,20 @@ session_ops(WT_SESSION *session)
/*! [Create a table with columns] */
ret = session->drop(session, "table:mytable", NULL);
+ /*! [Create a table and configure the page size] */
+ ret = session->create(session,
+ "table:mytable", "key_format=S,value_format=S"
+ "internal_page_max=16KB,leaf_page_max=1MB,leaf_value_max=64KB");
+ /*! [Create a table and configure the page size] */
+ ret = session->drop(session, "table:mytable", NULL);
+
+ /*! [Create a table and configure a large leaf value max] */
+ ret = session->create(session,
+ "table:mytable", "key_format=S,value_format=S"
+ "leaf_page_max=16KB,leaf_value_max=256KB");
+ /*! [Create a table and configure a large leaf value max] */
+ ret = session->drop(session, "table:mytable", NULL);
+
/*
* This example code gets run, and the compression libraries might not
* be loaded, causing the create to fail. The documentation requires