diff options
author | Don Anderson <dda@ddanderson.com> | 2016-02-29 08:19:40 -0500 |
---|---|---|
committer | Don Anderson <dda@ddanderson.com> | 2016-02-29 08:19:40 -0500 |
commit | 33991acfa1490ba7ccbe1ab8452858fe849926bd (patch) | |
tree | c3dcd4f0b388b30fe57d866dde387cf31a077cb2 /examples | |
parent | 5083d97a09a9e7dc525db7a4ed322983810fe522 (diff) | |
download | mongo-33991acfa1490ba7ccbe1ab8452858fe849926bd.tar.gz |
WT-2431 The schema example now needs statistics enabled for the connection.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/c/ex_schema.c | 3 | ||||
-rw-r--r-- | examples/java/com/wiredtiger/examples/ex_schema.java | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/examples/c/ex_schema.c b/examples/c/ex_schema.c index e7ceb6014d6..f3d3a1b9cb4 100644 --- a/examples/c/ex_schema.c +++ b/examples/c/ex_schema.c @@ -86,7 +86,8 @@ main(void) } else home = NULL; - if ((ret = wiredtiger_open(home, NULL, "create", &conn)) != 0) { + if ((ret = wiredtiger_open( + home, NULL, "create,statistics=(fast)", &conn)) != 0) { fprintf(stderr, "Error connecting to %s: %s\n", home, wiredtiger_strerror(ret)); return (ret); diff --git a/examples/java/com/wiredtiger/examples/ex_schema.java b/examples/java/com/wiredtiger/examples/ex_schema.java index a4b46d6dfe8..7cc26acb479 100644 --- a/examples/java/com/wiredtiger/examples/ex_schema.java +++ b/examples/java/com/wiredtiger/examples/ex_schema.java @@ -106,7 +106,7 @@ public class ex_schema { home = null; try { - conn = wiredtiger.open(home, "create"); + conn = wiredtiger.open(home, "create,statistics=(fast)"); session = conn.open_session(null); } catch (WiredTigerException wte) { System.err.println("WiredTigerException: " + wte); |