Permalink
Browse files

Merge pull request #405 from kevinmarvin/patch-1

ReplSetServers requires two parameters, apparently... 

Merging while we wait for #408 to be resolved.
  • Loading branch information...
2 parents b575480 + 0c1eb00 commit a023f0173ba7d81a87493236c23f03dfba4b4ca6 @aheckmann aheckmann committed Jul 9, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/mongoose/drivers/node-mongodb-native/connection.js
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -56,7 +55,7 @@ NativeConnection.prototype.doOpenSet = function (fn) {
servers.push(new mongo.Server(host, ports[i], {}));
});
- this.db = new mongo.Db(this.name, new ReplSetServers(servers));
+ this.db = new mongo.Db(this.name, new ReplSetServers(servers, {}));
}
this.db.open(fn);

0 comments on commit a023f01

Please sign in to comment.