Skip to content

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

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

rcsanchez97
Copy link
Contributor

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.

@rcsanchez97 rcsanchez97 changed the title Coverity fixes CDRIVER-5756 Coverity fixes Feb 15, 2025
Copy link
Contributor

@vector-of-bool vector-of-bool left a 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.

Comment on lines +314 to +319
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);
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@rcsanchez97 rcsanchez97 requested a review from a team as a code owner May 5, 2025 21:02
@rcsanchez97 rcsanchez97 requested a review from kevinAlbs May 5, 2025 21:02
@rcsanchez97
Copy link
Contributor Author

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.

@rcsanchez97 rcsanchez97 requested a review from kevinAlbs June 12, 2025 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants