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

partial result set rather than assertion in some cases when a cursor is overtaken by a cap point overrun on yield

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None

                  if ( c->capped() ) {
                      /* note we cannot advance here. if this condition occurs, writes to the oplog
                         have "caught" the reader.  skipping ahead, the reader would miss postentially
                         important data.
                         */
                      delete cc;
                      continue;
                  }
      

      Previously query would assert if this occurs during a yield, while get more would return a partial result.

      After recent SERVER-4150 work, query may assert or return partial result depending on code path. Get more behavior (partial result) is unchanged.

            Assignee:
            Unassigned Unassigned
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: