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

Make sure $_internalBoundedSort provides sort key for sharded mergesort

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Dan Larkin-York
            Reporter:
            david.percy@mongodb.com David Percy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: