christkv/node-mongodb-native — comment on commit 96804001819e9d0bf5f766d4d21f073a41ae96f7
File: lib/mongodb/db.js line 1014
By vvo:

Thank you, please, consider looking again at the process of adding a query to .commands :

```js
self.commands.push({type:'insert', 'db_command':db_command, 'options':options, 'callback':callback});
```

Looking at the code the only place I saw theses ,commands being unstacked is here : https://github.com/christkv/node-mongodb-native/blob/master/lib/mongodb/db.js#L1330 (__retryCommandOnFailure)

But __retryCommandOnFailure is only called if there's no connection established : https://github.com/christkv/node-mongodb-native/blob/master/lib/mongodb/db.js#L1454

So in the program flow I do not see how pushed commands could be re-run (connecting -> connected -> never re run). Thank you for your patience.