Simplify cursor `nextFunction` to combine cursor initialization and initial find command

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.1.11
    • Affects Version/s: None
    • Component/s: Core
    • None
    • None
    • None
    • None
    • None
    • None
    • 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.

              Assignee:
              Matt Broadstone
              Reporter:
              Matt Broadstone
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: