DocumentSourceCursor does not yield before loading first cursor document

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 2.2.0-rc0
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      DocumentSourceCursor may yield using

              bool cursorOk = pClientCursor->yieldSometimes(ClientCursor::WillNeed);
      

      But it only does this after advancing, and in particular not before the first call to pCursor->current().

      Diagnosed behavior: aggregation does not yield the read lock if its fist candidate matching document is not in memory.
      Expected behavior: aggregation does yield the read lock in this case.

            Assignee:
            Aaron Staple (Inactive)
            Reporter:
            Aaron Staple (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: