diff options
author | Susan LoVerso <sue@wiredtiger.com> | 2014-08-27 15:22:27 -0400 |
---|---|---|
committer | Susan LoVerso <sue@wiredtiger.com> | 2014-08-27 15:22:27 -0400 |
commit | 4a7a809ba819729e5d2a1dcfa8d0f6a155b032b0 (patch) | |
tree | 5b06164c7f72e91fc10c2a4783f8fb0d108dea3b /examples | |
parent | d06bf54923d1fbd0609b901c44db25fa3833e157 (diff) | |
download | mongo-4a7a809ba819729e5d2a1dcfa8d0f6a155b032b0.tar.gz |
Coordinate log cursors and log archiving. #1163
Diffstat (limited to 'examples')
-rw-r--r-- | examples/c/ex_log.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/c/ex_log.c b/examples/c/ex_log.c index e84213c6a61..37d1394afff 100644 --- a/examples/c/ex_log.c +++ b/examples/c/ex_log.c @@ -112,11 +112,9 @@ print_record(WT_LSN *lsn, uint32_t opcount, " txnid %" PRIu64 " fileid %" PRIu32, lsn->file, (uint64_t)lsn->offset, opcount, rectype, optype, txnid, fileid); - printf(" key size %zu", key->size); - printf(" value size %zu", value->size); + printf(" key size %zu value size %zu\n", key->size, value->size); if (rectype == WT_LOGREC_MESSAGE) - printf("\n Application Record: %s", (char *)value->data); - printf("\n"); + printf("Application Record: %s\n", (char *)value->data); } /* @@ -151,6 +149,7 @@ simple_walk_log(WT_SESSION *session) } if (ret == WT_NOTFOUND) ret = 0; + ret = cursor->close(cursor); return (ret); } /*! [log cursor walk] */ |