-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: Core
I was looking to understand how queued request are stored in the new version of mongodb so I was reading the code.
Doing so I fall on the line 115 of connect.js that looks buggy to me.
this[kStream].destroy(typeof issue.destroy === 'boolean' ? undefined : issue.destroy);
It's look like the value are inverted and should be written like this
this[kStream].destroy(typeof issue.destroy === 'boolean' ? issue.destroy : undefined);
There's the same issue line 131.
Maybe I'm wrong but I see similar line that was written in the other way.