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

Always add the "view" information to expCtx

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      Right now, we have a function search_helpers::addResolvedNamespaceForSearch() that adds the view information to the ExpressionContext only if it's a search query. I think it makes most sense to always add the view information to the ExpressionContext, particularly in case future devs want access to that information for some reason. We should remove this search-specific helper and have the run_agg path always include view information on the expCtx when applicable.

            Assignee:
            josh.siegel@mongodb.com Josh Siegel
            Reporter:
            will.buerger@mongodb.com Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: