-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(topologies): unify topologies connect API (#1615)
Eliminates the DB parameter from the `connect` call in replset and mongos to unify the api with server. BREAKING CHANGE: Function signature for `.connect` method on replset and mongos has changed. You shouldn't have been using this anyway, but if you were, you only should pass `options` and `callback`. Part of NODE-1089
- Loading branch information
1 parent
018c496
commit 0fb4658
Showing
2 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0fb4658
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.
Dan,
What is the correct way to connect after upgrading from 3rc0 ?
I noticed this issue is open for docs also, thx
0fb4658
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.
@sbr464 the buffer max entries are now picked up from the passed in
options
, rather than from a passed inDb
instance. This change has simply made all three topology types consistent in this regard.Also, generally you shouldn't be connecting this way. This is the connect method directly on a topology instance, and most cases (99%) should simply be using
MongoClient.connect