[SERVER-26060] Coverity analysis defect 99881: Redundant test Created: 12/Sep/16  Updated: 19/Nov/16  Resolved: 22/Sep/16

Status: Closed
Project: Core Server
Component/s: WiredTiger
Affects Version/s: None
Fix Version/s: 3.3.14

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

Issue Links:
Depends
depends on WT-2905 dead code: MongoDB Coverity #99881 Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Test always evaluates the same

Defect 99881 (STATIC_C)
Checker DEADCODE (subcategory redundant_test)
File: /src/third_party/wiredtiger/src/evict/evict_lru.c
Function __evict_get_ref
/src/third_party/wiredtiger/src/evict/evict_lru.c, line: 1590
At condition "is_app", the value of "is_app" must be equal to 1.

    		if (!urgent_ok && (is_server || (is_app &&

/src/third_party/wiredtiger/src/evict/evict_lru.c, line: 1590
The condition "is_app" must be true.

    		if (!urgent_ok && (is_server || (is_app &&



 Comments   
Comment by Michael Cahill (Inactive) [ 22/Sep/16 ]

Resolved by merge of WT-2905.

Comment by Eric Milkie [ 12/Sep/16 ]

Not sure this one is real – I don't see why is_app must be true at that location.

Generated at Thu Feb 08 04:11:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.