summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsueloverso <sue@mongodb.com>2017-01-26 16:54:46 -0500
committerDon Anderson <dda@mongodb.com>2017-01-26 16:54:46 -0500
commit0a70661a0d33c9705509955baafded2855054a29 (patch)
tree3433837d87510c8c2079fdbd31042ef29911ae52
parent8aa3922883e7f3d4a9003211faf595250c3bbfdd (diff)
downloadmongo-0a70661a0d33c9705509955baafded2855054a29.tar.gz
WT-3156 Add check in assertions for errors. (#3271)
-rw-r--r--src/log/log.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/log/log.c b/src/log/log.c
index 614ae1a9b6d..1482cc0aca1 100644
--- a/src/log/log.c
+++ b/src/log/log.c
@@ -2202,12 +2202,12 @@ err:
/*
* If one of the sync flags is set, assert the proper LSN has moved to
- * match.
+ * match on success.
*/
- WT_ASSERT(session, !LF_ISSET(WT_LOG_FLUSH) ||
+ WT_ASSERT(session, ret != 0 || !LF_ISSET(WT_LOG_FLUSH) ||
__wt_log_cmp(&log->write_lsn, &lsn) >= 0);
- WT_ASSERT(session,
- !LF_ISSET(WT_LOG_FSYNC) || __wt_log_cmp(&log->sync_lsn, &lsn) >= 0);
+ WT_ASSERT(session, ret != 0 || !LF_ISSET(WT_LOG_FSYNC) ||
+ __wt_log_cmp(&log->sync_lsn, &lsn) >= 0);
return (ret);
}