Skip to content

GetLocalSlaveOkConnection call is incorrect #12

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 1 commit into
base: master
Choose a base branch
from

Conversation

jbrinkman
Copy link

The call to GetLocalSlaveOkConnection was adding the instance number to the mongodPort which resulted in incorrect behavior. The port number is retrieved from each local webrole instance and doesn't need to be "adjusted" since it is already correct.

The original code was resulting in a large number of 'Unable to connect to server localhost:27022' errors since the instance 2 (running on port 27020) was trying to test for a connection to mongod on the wrong IP address.

The call to GetLocalSlaveOkConnection was adding the instance number to the mongodPort which resulted in incorrect behavior.  The port number is retrieved from each local webrole instance and doesn't need to be "adjusted" since it is already correct.
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.

1 participant