-
Notifications
You must be signed in to change notification settings - Fork 455
CDRIVER-5756 Coverity fixes #1867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
CID: 100057
CID: 100087
CID: 115840, 115848, 115851, 115853
CID: 134019
CID: 138986
CID: 138989
CID: 156373
CID: 157950
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments and questions.
bson_mutex_lock (&topology->tpld_modification_mtx); | ||
for (size_t i = 0u; i < n_rtt_monitors; i++) { | ||
server_monitor = mongoc_set_get_item (topology->rtt_monitors, i); | ||
mongoc_server_monitor_request_shutdown (server_monitor); | ||
} | ||
bson_mutex_unlock (&topology->tpld_modification_mtx); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this mutex is relevant here. Do you have a link to the Coverity warning related to these lines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I sent you the link in a DM.
Co-authored-by: Kevin Albertson <[email protected]>
Here is the patch build for the latest changes. Also, I have checked the Coverity dashboard and there are no new detections that need to be addressed. |
This PR fixes some small Coverity issues (w/ full Evergreen patch build).
@kevinAlbs I wasn't sure who would be available to review, so please feel free to adjust the reviewers as needed.