-
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.
refactor!: only store topology on MongoClient (#2594)
A topology is now only stored on MongoClient and not on Db or Collection. These classes now store a parent and access the topology through that parent. External topology accessors have been removed, and an internal `getTopology` util has been added. Methods that require a topology can now run into cases where the topology is undefined because the client is closed; an error is thrown in these cases. NODE-2850
- Loading branch information
1 parent
dcb1d20
commit 33fa6b2
Showing
16 changed files
with
183 additions
and
211 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
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
Oops, something went wrong.