Skip to content

Commit

Permalink
Don't merge readConcern option
Browse files Browse the repository at this point in the history
The readConcern option is an object which contains a level property and
should be passed through as-is.
  • Loading branch information
bausmeier committed May 4, 2017
1 parent 6bbb8de commit 6aea4da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongo_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ var mergeOptions = function(target, source, flatten) {
var createUnifiedOptions = function(finalOptions, options) {
var childOptions = ['mongos', 'server', 'db'
, 'replset', 'db_options', 'server_options', 'rs_options', 'mongos_options'];
var noMerge = [];
var noMerge = ['readconcern'];

for(var name in options) {
if(noMerge.indexOf(name.toLowerCase()) != -1) {
Expand Down

0 comments on commit 6aea4da

Please sign in to comment.