Make sure $_internalBoundedSort provides sort key for sharded mergesort

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.0.0-rc5, 6.1.0-rc0, 5.0.16
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v6.0, v5.0
    • QO 2022-04-18, QO 2022-05-02, QO 2022-05-16
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Normally $sort uses the needsMerge flag to decide whether to return the sort key as metadata:
      https://github.com/10gen/mongo/blob/85409b314c52efaa1987d50291f2779dfa314328/src/mongo/db/pipeline/document_source_sort.cpp#L450-L455

      Presumably we will need to do the same thing for $_internalBoundedSort.

            Assignee:
            Dan Larkin-York
            Reporter:
            David Percy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: