Comparing version 1.1.2 to 1.1.3
@@ -61,4 +61,6 @@ var BaseCommand = require('./base_command').BaseCommand, | ||
QueryCommand.prototype.setMongosReadPreference = function(readPreference, tags) { | ||
// Force the slave ok flag to be set | ||
this.queryOptions |= QueryCommand.OPTS_SLAVE; | ||
// Force the slave ok flag to be set if we are not using primary read preference | ||
if(readPreference != false && readPreference != 'primary') { | ||
this.queryOptions |= QueryCommand.OPTS_SLAVE; | ||
} | ||
@@ -65,0 +67,0 @@ // Backward compatibility, ensure $query only set on read preference so 1.8.X works |
@@ -0,1 +1,3 @@ | ||
var ReadPreference = require('./read_preference').ReadPreference; | ||
/** | ||
@@ -2,0 +4,0 @@ * Mongos constructor provides a connection to a mongos proxy including failover to additional servers |
{ "name" : "mongodb" | ||
, "description" : "A node.js driver for MongoDB" | ||
, "keywords" : ["mongodb", "mongo", "driver", "db"] | ||
, "version" : "1.1.2" | ||
, "version" : "1.1.3" | ||
, "author" : "Christian Amor Kvalheim <christkv@gmail.com>" | ||
@@ -6,0 +6,0 @@ , "contributors" : [ "Aaron Heckmann", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2493111
10409