summaryrefslogtreecommitdiff
path: root/examples/c
diff options
context:
space:
mode:
authorSusan LoVerso <sue@wiredtiger.com>2015-07-29 14:07:34 -0400
committerSusan LoVerso <sue@wiredtiger.com>2015-07-29 14:07:34 -0400
commit06df83ccbd9588c0bfe7abf7b7e6170e50583dbd (patch)
tree53ecef178f88e2c110d1a4a6e6381faf9f406308 /examples/c
parentd73f698cee321b469c7c189334f111c9680775f5 (diff)
downloadmongo-06df83ccbd9588c0bfe7abf7b7e6170e50583dbd.tar.gz
ex_log debugging.
Diffstat (limited to 'examples/c')
-rw-r--r--examples/c/ex_log.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/c/ex_log.c b/examples/c/ex_log.c
index 11be5c06efb..01e12c18204 100644
--- a/examples/c/ex_log.c
+++ b/examples/c/ex_log.c
@@ -291,15 +291,22 @@ main(void)
fprintf(stderr, "%s: failed ret %d\n", cmd_buf, ret);
return (ret);
}
+ printf("Create connection dir %s\n", home1);
+ fflush(stdout);
if ((ret = wiredtiger_open(home1, NULL, CONN_CONFIG, &wt_conn)) != 0) {
fprintf(stderr, "Error connecting to %s: %s\n",
home1, wiredtiger_strerror(ret));
return (ret);
}
+ printf("Open session\n");
ret = wt_conn->open_session(wt_conn, NULL, NULL, &session);
+ printf("Create table %s\n", uri);
+ fflush(stdout);
ret = session->create(session, uri, "key_format=S,value_format=S");
RETCHK("Create");
+ printf("Open cursor to uri %s\n",uri);
+ fflush(stdout);
ret = session->open_cursor(session, uri, NULL, NULL, &cursor);
RETCHK("open_cursor");