Skip to content

Commit

Permalink
refactor(db-ops): remove left over read preference cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Jun 19, 2018
1 parent 18ca41d commit df43f11
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/operations/db_ops.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,11 +476,6 @@ function executeCommand(db, command, options, callback) {
// Get the db name we are executing against
const dbName = options.dbName || options.authdb || db.s.databaseName;

// If we have a readPreference set
if (options.readPreference == null && db.s.readPreference) {
options.readPreference = db.s.readPreference;
}

// Convert the readPreference if its not a write
options.readPreference = resolveReadPreference(options, { default: ReadPreference.primary });

Expand Down

0 comments on commit df43f11

Please sign in to comment.