summaryrefslogtreecommitdiff
path: root/src/txn
diff options
context:
space:
mode:
authorKeith Bostic <keith.bostic@mongodb.com>2017-03-16 23:50:25 -0400
committerMichael Cahill <michael.cahill@mongodb.com>2017-03-17 14:50:25 +1100
commit360b43b33170a89587a737988477d0619008ec2a (patch)
treee2941b325dbfc13000f533c500e9743a2027eb3f /src/txn
parent65ab67ed8d9777285dedf89cc506b9cffc52942e (diff)
downloadmongo-360b43b33170a89587a737988477d0619008ec2a.tar.gz
WT-3216 changes suggested by clang-tidy (#3328)
Diffstat (limited to 'src/txn')
-rw-r--r--src/txn/txn_ckpt.c1
-rw-r--r--src/txn/txn_recover.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/txn/txn_ckpt.c b/src/txn/txn_ckpt.c
index 80cdf1cd39b..6c97922f7e1 100644
--- a/src/txn/txn_ckpt.c
+++ b/src/txn/txn_ckpt.c
@@ -422,7 +422,6 @@ __checkpoint_reduce_dirty_cache(WT_SESSION_IMPL *session)
__wt_sleep(0, stepdown_us / 10);
__wt_epoch(session, &stop);
current_us = WT_TIMEDIFF_US(stop, last);
- total_ms = WT_TIMEDIFF_MS(stop, start);
bytes_written_total =
cache->bytes_written - bytes_written_start;
diff --git a/src/txn/txn_recover.c b/src/txn/txn_recover.c
index 2d8a77a69e6..30932195b1e 100644
--- a/src/txn/txn_recover.c
+++ b/src/txn/txn_recover.c
@@ -93,7 +93,7 @@ __recovery_cursor(WT_SESSION_IMPL *session, WT_RECOVERY *r,
"%s op %" PRIu32 " to file %" PRIu32 " at LSN %" PRIu32 \
"/%" PRIu32, \
cursor == NULL ? "Skipping" : "Applying", \
- optype, fileid, lsnp->l.file, lsnp->l.offset); \
+ optype, fileid, (lsnp)->l.file, (lsnp)->l.offset); \
if (cursor == NULL) \
break