christkv/node-mongodb-native — Issue #443: TypeError: Cannot set property state of [object Object] which has only a getter TypeError: Cannot set property state of [object Object] which has only a getter TypeError: Cannot set property state of [object Object] which has only a getter
Author: novemberborn
Created: 2011-12-15 12:37:27+00:00
State: open

```
TypeError: Cannot set property state of [object Object] which has only a getter
at Object.callback (…/lib/mongodb/connection/server.js:163:22)
at Array. (…/lib/mongodb/connection/server.js:276:32)
at EventEmitter._tickCallback (node.js:126:26)
```

In `db.js` there is indeed only a getter defined:

```
this.__defineGetter__("state", function() { return this.serverConfig._serverState; });
```

I guess `state` isn't supposed to be set here? Using ReplSet.