[SERVER-50764] Coverity analysis defect 116257: Missing break in switch Created: 03/Sep/20  Updated: 29/Oct/23  Resolved: 11/Sep/20

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Charlie Swanson
Resolution: Fixed Votes: 0
Labels: coverity, qopt-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query 2020-09-21
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/query/query_planner.cpp:176: MISSING_BREAK 116257 The case for value "mongo::QueryPlannerParams::ASSERT_MIN_TS_HAS_NOT_FALLEN_OFF_OPLOG" is not terminated by a 'break' statement.
/src/mongo/db/query/query_planner.cpp:178: MISSING_BREAK 116257 The above case falls through to this one.



 Comments   
Comment by Githook User [ 11/Sep/20 ]

Author:

{'name': 'Charlie Swanson', 'email': 'charlie.swanson@mongodb.com', 'username': 'cswanson310'}

Message: SERVER-50764 Fix bad merge conflict - add break;
Branch: master
https://github.com/mongodb/mongo/commit/b39aecbdf43f463832739d7415d59958619b8cff

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