summaryrefslogtreecommitdiff
path: root/examples/c/ex_async.c
diff options
context:
space:
mode:
authorSusan LoVerso <sue@wiredtiger.com>2014-04-28 15:23:36 -0400
committerSusan LoVerso <sue@wiredtiger.com>2014-04-28 15:23:36 -0400
commit10d75f7130504d17bae8d8c5681cea1f0487e9ba (patch)
tree88f2e33e4653a520e35df05c42b9f8dd01486b94 /examples/c/ex_async.c
parent9e783e8b06d673dbfac2cb549e95575e4ebc6a62 (diff)
downloadmongo-10d75f7130504d17bae8d8c5681cea1f0487e9ba.tar.gz
Add asynchronous compact support to async API.
Diffstat (limited to 'examples/c/ex_async.c')
-rw-r--r--examples/c/ex_async.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/c/ex_async.c b/examples/c/ex_async.c
index 2bfd6b286d5..e589054aca3 100644
--- a/examples/c/ex_async.c
+++ b/examples/c/ex_async.c
@@ -137,6 +137,10 @@ retry:
/*! [flush] */
wt_conn->async_flush(wt_conn);
/*! [flush] */
+ /*! [Compact a table] */
+ ret = wt_conn->async_new_op(wt_conn, uri, "timeout=10", &cb, &op);
+ op->compact(op);
+ /*! [Compact a table] */
for (i = 0; i < MAX_KEYS; i++) {
op = NULL;