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

Fetch the Mongo database name from the URI. #657

Merged
merged 1 commit into from
Sep 6, 2013
Merged

Conversation

conorbranagan
Copy link
Member

We were always using the admin database which is usually not what you want.

For example if your mongo uri is: mongodb://user:pass@localhost/mydb then dbstats will be called on the correct database.

So I don't know this check well enough to know if there is a particularly reason that we were using the admin database by default. I was able to call the other command (serverStatus) on any DB but this might be limited for other cases.

@remh
Copy link
Contributor

remh commented Sep 6, 2013

Nice.

remh added a commit that referenced this pull request Sep 6, 2013
Fetch the Mongo database name from the URI.
@remh remh merged commit 89b20e7 into master Sep 6, 2013
@remh remh deleted the mongo_db_config branch November 11, 2013 20:03
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.

2 participants