Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6119

DocumentSourceCursor does not yield before loading first cursor document

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.2.0-rc0
    • None
    • Aggregation Framework
    • None

    Description

      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.

      Attachments

        Activity

          People

            aaron Aaron Staple
            aaron Aaron Staple
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: