This repository has been archived by the owner on Feb 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(wire-protocol): reuse
command
where possible
Most of the 2.6 and 3.6 wire protocol implementations are using commands, but they don't internally reuse the available `command` method. This does that as much as possible, reducing a large amount of duplicate code, and improving readability. - converted `killCursors` to reuse `command` (3.2 only) - simplify `command` options handling - converted `getMore` to use `command (3.2 only) - fix mongos sharded tests to pass read preference in as option not in the command - converted write commands to use `command` internally (2.6+3.2) ` converted `query` to reuse `command` (3.2 only) - remove needless copy of options in `Query` class (fixed apm too) - refactor `databaseNamespace` and `collectionNamespace` (2.6+3.2)
- Loading branch information
Showing
7 changed files
with
158 additions
and
225 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.