diff options
author | Susan LoVerso <sue@wiredtiger.com> | 2015-09-24 15:20:48 -0400 |
---|---|---|
committer | Susan LoVerso <sue@wiredtiger.com> | 2015-09-24 15:20:48 -0400 |
commit | 7dbe9256f67ae9c53237fb0c4f9534ff10e4b3c1 (patch) | |
tree | 90fe8bdf062d08310f3cace6652876d307b0a284 /examples | |
parent | ab808c277e947b619e39779ff66b2e7072279612 (diff) | |
download | mongo-7dbe9256f67ae9c53237fb0c4f9534ff10e4b3c1.tar.gz |
WT-2134 Force out pending log slot buffer to advance log->alloc_lsn for
log_flush. Fix example to use the correct config signature.
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 6695d71e6a9..2e08d141b41 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); } - ret = session->log_flush(session, "sync=sync"); + ret = session->log_flush(session, "sync=on"); 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); - ret = session->log_flush(session, "sync=write"); - ret = session->log_flush(session, "sync=sync"); + ret = session->log_flush(session, "sync=off"); + ret = session->log_flush(session, "sync=on"); ret = wt_conn->close(wt_conn, NULL); return (ret); |