[SERVER-58854] Coverity analysis defect 120358: Missing break in switch Created: 26/Jul/21  Updated: 27/Oct/23  Resolved: 17/Sep/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 Optimization
Resolution: Gone away Votes: 0
Labels: coverity, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2021-09-17 at 9.32.23 AM.png    
Assigned Teams:
Query Optimization
Operating System: ALL
Participants:

 Description   

Missing break in switch

Execution falls through to the next case statement or default; this might indicate a common typo. Missing break statement between cases in switch statement
/src/mongo/db/pipeline/document_source_densify.cpp:430: MISSING_BREAK 120358 The case for value "mongo::DocumentSourceInternalDensify::DensifyState::kHaveGenerator" is not terminated by a "break" statement.
/src/mongo/db/pipeline/document_source_densify.cpp:463: MISSING_BREAK 120358 The above case falls through to this one.



 Comments   
Comment by Kyle Suarez [ 17/Sep/21 ]

Closing as "Gone Away" because Coverity says the original code that was flagged was "purged".

Comment by Kyle Suarez [ 26/Jul/21 ]

In separate Coverity issues, the static analysis flagged each case of the larger switch statement as missing a break, so it would be good to address all of them at once as part of this ticket.

Comment by Kyle Suarez [ 26/Jul/21 ]

FYI ted.tuckman, hana.pearlman

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