-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Core
-
None
The current implementation of core's nextFunction is incredibly complex, and makes a number of recursive calls needlessly. We should simplify this code path, primarily ensuring that cursor initialization also makes the first find command call. This will allows for the next step in the wire protocol refactor, which is to make WireProtocol.prototype.command actually take a callback, and provide a consistent API across wire protocol methods.