[SERVER-18714] Coverity analysis defect 72703: Redundant test Created: 28/May/15  Updated: 05/Feb/16  Resolved: 26/Jun/15

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure, WiredTiger
Affects Version/s: None
Fix Version/s: 3.1.5

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Keith Bostic (Inactive)
Resolution: Done Votes: 0
Labels: WiredTiger, coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by WT-1933 MongoDB changes for WiredTiger 2.6.1 Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Test always evaluates the same

Defect 72703 (STATIC_C)
Checker DEADCODE (subcategory redundant_test)
File: /src/third_party/wiredtiger/src/conn/conn_api.c
Function __wt_encryptor_config
/src/third_party/wiredtiger/src/conn/conn_api.c, line: 465
At condition "locked", the value of "locked" must be equal to 1.

    	if (locked)

/src/third_party/wiredtiger/src/conn/conn_api.c, line: 417
Assigning: "locked" = "1".

    	locked = 1;

/src/third_party/wiredtiger/src/conn/conn_api.c, line: 465
The condition "locked" must be true.

    	if (locked)


Generated at Thu Feb 08 03:48:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.