summaryrefslogtreecommitdiff
path: root/examples/c/ex_encrypt.c
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2016-02-18 14:00:00 +1100
committerMichael Cahill <michael.cahill@mongodb.com>2016-02-18 14:00:00 +1100
commit5cdd3e320cb19cd54111c2572a3d6e33d3009ad4 (patch)
treeaa11f6aa045af0ab4b06b1e4ac59782806a969e3 /examples/c/ex_encrypt.c
parent5e3a56f0abb433a23e0b8cb8f9a0c86c2d6ad80f (diff)
parent563b7823f74dcd219740945aa7067de0927ee9df (diff)
downloadmongodb-3.2.4.tar.gz
Merge branch 'mongodb-3.2.3' into mongodb-3.2mongodb-3.2.4
Diffstat (limited to 'examples/c/ex_encrypt.c')
-rw-r--r--examples/c/ex_encrypt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/c/ex_encrypt.c b/examples/c/ex_encrypt.c
index 425ee6b7287..c53a61c92ea 100644
--- a/examples/c/ex_encrypt.c
+++ b/examples/c/ex_encrypt.c
@@ -389,16 +389,15 @@ simple_walk_log(WT_SESSION *session)
{
WT_CURSOR *cursor;
WT_ITEM logrec_key, logrec_value;
- WT_LSN lsn;
uint64_t txnid;
- uint32_t fileid, opcount, optype, rectype;
+ uint32_t fileid, log_file, log_offset, opcount, optype, rectype;
int found, ret;
ret = session->open_cursor(session, "log:", NULL, NULL, &cursor);
found = 0;
while ((ret = cursor->next(cursor)) == 0) {
- ret = cursor->get_key(cursor, &lsn.file, &lsn.offset, &opcount);
+ ret = cursor->get_key(cursor, &log_file, &log_offset, &opcount);
ret = cursor->get_value(cursor, &txnid,
&rectype, &optype, &fileid, &logrec_key, &logrec_value);