mongodb-core
Advanced tools
Comparing version 1.1.32 to 1.1.33
@@ -0,1 +1,5 @@ | ||
1.1.33 05-31-2015 | ||
----------------- | ||
- NODE-478 Work around authentication race condition in mongos authentication due to multi step authentication methods like SCRAM. | ||
1.1.32 05-20-2015 | ||
@@ -2,0 +6,0 @@ ----------------- |
@@ -84,3 +84,3 @@ "use strict"; | ||
return function(err, connection) { | ||
if(self.logger.isDebug()) self.logger.debug(f('pool [%s] timedout out [%s] with connection [%s]', this.dead, JSON.stringify(err), JSON.stringify(connection))); | ||
if(self.logger.isDebug()) self.logger.debug(f('pool [%s] timed out [%s] with connection [%s]', this.dead, JSON.stringify(err), JSON.stringify(connection))); | ||
if(!self.dead) { | ||
@@ -267,2 +267,2 @@ self.state = DISCONNECTED; | ||
module.exports = Pool; | ||
module.exports = Pool; |
@@ -580,3 +580,3 @@ "use strict"; | ||
// Authenticate against all the servers | ||
var servers = this.s.mongosState.getAll().slice(0); | ||
var servers = this.s.mongosState.connectedServers().slice(0); | ||
var count = servers.length; | ||
@@ -592,3 +592,2 @@ // Correct authentication | ||
var server = servers.shift(); | ||
// Arguments without a callback | ||
@@ -864,2 +863,7 @@ var argsWithoutCallback = [mechanism, db].concat(args.slice(0)); | ||
// Is there an authentication process ongoing | ||
if(state.authInProgress) { | ||
state.authInProgressServers.push(server); | ||
} | ||
// No credentials just process server | ||
@@ -866,0 +870,0 @@ if(state.credentials.length == 0) return processNewServer(server); |
{ | ||
"name": "mongodb-core", | ||
"version": "1.1.32", | ||
"version": "1.1.33", | ||
"description": "Core MongoDB driver functionality, no bells and whistles and meant for integration not end applications", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
323342
7945