diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-09-17 09:50:48 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-09-17 09:50:48 -0400 |
commit | e005640b9202196b0744251c04266edc5e009482 (patch) | |
tree | 4bd18c2187ea15fdcdec22d33e9aecb6be68c1a9 /examples | |
parent | 660acc38a877e4c3f26d254a720937195d33445b (diff) | |
download | mongo-e005640b9202196b0744251c04266edc5e009482.tar.gz |
WT_SESSION.log_flush returns a value.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/c/ex_sync.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/c/ex_sync.c b/examples/c/ex_sync.c index 0c293341e74..6695d71e6a9 100644 --- a/examples/c/ex_sync.c +++ b/examples/c/ex_sync.c @@ -135,7 +135,7 @@ main(void) cursor->set_value(cursor, v); ret = cursor->insert(cursor); } - session->log_flush(session, "sync=sync"); + ret = session->log_flush(session, "sync=sync"); for (i = 0; i < MAX_KEYS; i++, record_count++) { snprintf(k, sizeof(k), "key%d", record_count); @@ -145,8 +145,8 @@ main(void) ret = cursor->insert(cursor); } ret = cursor->close(cursor); - session->log_flush(session, "sync=write"); - session->log_flush(session, "sync=sync"); + ret = session->log_flush(session, "sync=write"); + ret = session->log_flush(session, "sync=sync"); ret = wt_conn->close(wt_conn, NULL); return (ret); |