Skip to content
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

CDRIVER-594 fix all the SS/SDAM timers #213

Merged
merged 2 commits into from Apr 7, 2015

Conversation

hanumantmk
Copy link
Contributor

There's a bunch in here.

@ajdavis, mind taking a look to see if the logic is correct?

@@ -321,8 +349,10 @@ mongoc_topology_select (mongoc_topology_t *topology,
error);

if (! selected_server) {
/* TODO request an immediate topology check here */
r = mongoc_cond_timedwait (&topology->cond_client, &topology->mutex, expire_at - now);
topology->scan_requested = true;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we shouldn't have to do this. I just got hung up on the fact that we have the mutex here. It's fine to either have a version of request_scan which assumes we have the lock, or to drop the lock and use request scan, then resume it

o actually lock around ismaster handling in topology
o re-use topology_request_scan in select loop
@ajdavis
Copy link
Member

ajdavis commented Apr 1, 2015

LGTM.

ajdavis added a commit that referenced this pull request Apr 7, 2015
@ajdavis ajdavis merged commit 181884c into mongodb:1.2.0-dev Apr 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants