summaryrefslogtreecommitdiff
path: root/src/session/session_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/session/session_api.c')
-rw-r--r--src/session/session_api.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/session/session_api.c b/src/session/session_api.c
index f7d6ce5e7e7..599d2ced103 100644
--- a/src/session/session_api.c
+++ b/src/session/session_api.c
@@ -1163,11 +1163,11 @@ __wt_session_range_truncate(WT_SESSION_IMPL *session,
*
* Rather happily, the compare routine will also confirm the cursors
* reference the same object and the keys are set.
+ *
+ * The test for a NULL start comparison function isn't necessary (we
+ * checked it above), but it quiets clang static analysis complaints.
*/
- if (start != NULL && stop != NULL) {
- /* quiet clang scan-build */
- WT_ASSERT(session, start->compare != NULL);
-
+ if (start != NULL && stop != NULL && start->compare != NULL) {
WT_ERR(start->compare(start, stop, &cmp));
if (cmp > 0)
WT_ERR_MSG(session, EINVAL,
@@ -1574,7 +1574,6 @@ __session_transaction_sync(WT_SESSION *wt_session, const char *config)
WT_ERR_MSG(session, EINVAL, "logging not enabled");
log = conn->log;
- timeout_ms = waited_ms = 0;
/*
* If there is no background sync LSN in this session, there