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

covered index projection may be improperly applied after index becomes multikey during yield

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

      We currently support projections for non multikey indexes, but not multikey indexes. If an index becomes multikey during a yield, we may return results that are not proper projections of actual documents. For example, if {a:[1,2]} is saved during a yield making the index {a:1} multikey we may return {a:1} and {a:2} even though there may not be any documents that should be projected to {a:1} or {a:2}.

      This issue affects yielding in both query and get more.

      A test demonstrating the issue will be pushed.

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: