Closed Charuru closed 13 years ago
Works after commenting out that line about replica sets.
That doesn't even make sense, what version of node do you have?
I have 0.4.1
Aha, looks like a bug in node.js that has been fixed in v0.4.3. [v0.4.2]node/lib/events.js: https://github.com/joyent/node/blob/v0.4.2/lib/events.js
EventEmitter.prototype.setMaxListeners = function(n) {
this._events.maxListeners = n;
};
[v0.4.3]node/lib/events.js: https://github.com/joyent/node/blob/v0.4.3/lib/events.js
EventEmitter.prototype.setMaxListeners = function(n) {
if (!this._events) this._events = {};
this._events.maxListeners = n;
};
For kicks, can you try moving the setMaxListeners command immediately below the this._replicaSet.on('lost',...
block below it? That will probably fix it for pre v0.4.3 and I can check in that change.
Yeah I should probably update.
And your suggestion works. Thanks again.
The error: