[SERVER-58088] Coverity analysis defect 120211: Identical code for different branches Created: 25/Jun/21  Updated: 06/Dec/22  Resolved: 20/Aug/21

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Backlog - Query Execution
Resolution: Won't Fix Votes: 0
Labels: coverity, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Operating System: ALL
Participants:

 Description   

Identical code for different branches

The condition is redundant The same code is executed regardless of the condition
/src/mongo/db/pipeline/pipeline_test.cpp:79: IDENTICAL_BRANCHES 120211 Ternary expression on condition "mongo::feature_flags::gFeatureFlagChangeStreamsOptimization.isEnabledAndIgnoreFCV()" has identical then and else expressions: "6". Should one of the expressions be modified, or the entire ternary expression replaced?


Generated at Thu Feb 08 05:43:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.