summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-12-10 17:50:55 -0500
committerKeith Bostic <keith@wiredtiger.com>2014-12-10 17:50:55 -0500
commit9b9cb89974859b57f3d88bc1019a2f622cd5dc22 (patch)
treea136f1ebfaf616906e861747005f07d113e45378 /examples
parentc2550bec84c25d2b571f0de506c09179fbb8ce68 (diff)
downloadmongo-9b9cb89974859b57f3d88bc1019a2f622cd5dc22.tar.gz
Add an example a large leaf-page value overflow config
Diffstat (limited to 'examples')
-rw-r--r--examples/c/ex_all.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/c/ex_all.c b/examples/c/ex_all.c
index 731b63b8eb8..ba34a74b1e2 100644
--- a/examples/c/ex_all.c
+++ b/examples/c/ex_all.c
@@ -535,6 +535,13 @@ session_ops(WT_SESSION *session)
/*! [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=16KBleaf_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