summaryrefslogtreecommitdiff
path: root/examples/c/ex_all.c
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2015-04-23 08:45:12 -0400
committerKeith Bostic <keith@wiredtiger.com>2015-04-23 08:45:12 -0400
commit83286f89b96840e42d984f12402e455d71567c96 (patch)
tree950c46119d9580404c140cbe9419f00662652d1a /examples/c/ex_all.c
parent6ba1c47aa753cb9b2f26828e9f16a0d64869557a (diff)
downloadmongo-83286f89b96840e42d984f12402e455d71567c96.tar.gz
Change wiredtiger_config_validate to take a WT_EVENT_HANDLER as an argument,
if no WT_SESSION is supplied, dummy up a WT_SESSION/WT_CONNECTION pair and configure in the specified WT_EVENT_HANDLER. This allows applications to control the error output when calling wiredtiger_config_validate before the database has been opened.
Diffstat (limited to 'examples/c/ex_all.c')
-rw-r--r--examples/c/ex_all.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/c/ex_all.c b/examples/c/ex_all.c
index e30308a57fc..e562af73fc3 100644
--- a/examples/c/ex_all.c
+++ b/examples/c/ex_all.c
@@ -903,7 +903,7 @@ connection_ops(WT_CONNECTION *conn)
* "WT_SESSION.create" and cursor close would be WT_CURSOR.close").
*/
ret = wiredtiger_config_validate(
- NULL, "WT_SESSION.create", "allocation_size=32KB");
+ NULL, NULL, "WT_SESSION.create", "allocation_size=32KB");
/*! [Validate a configuration string] */
{