[SERVER-18702] Coverity analysis defect 72697: Redundant test Created: 28/May/15  Updated: 14/Apr/16  Resolved: 29/May/15

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

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

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Test always evaluates the same

Defect 72697 (STATIC_C)
Checker DEADCODE (subcategory redundant_test)
File: /src/third_party/wiredtiger/src/session/session_dhandle.c
Function __wt_session_lock_dhandle
/src/third_party/wiredtiger/src/session/session_dhandle.c, line: 160
At condition "want_exclusive", the value of "want_exclusive" must be equal to 1.

    		if (ret != EBUSY || (is_open && want_exclusive))

/src/third_party/wiredtiger/src/session/session_dhandle.c, line: 77
Assigning: "want_exclusive" = "(flags & 8U) ? 1 : 0".

    	want_exclusive = LF_ISSET(WT_DHANDLE_EXCLUSIVE) ? 1 : 0;

/src/third_party/wiredtiger/src/session/session_dhandle.c, line: 160
The condition "want_exclusive" must be true.

    		if (ret != EBUSY || (is_open && want_exclusive))


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