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

Make sure $_internalBoundedSort provides sort key for sharded mergesort

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.0.0-rc5, 6.1.0-rc0, 5.0.16
    • None
    • None
    • Fully Compatible
    • v6.0, v5.0
    • QO 2022-04-18, QO 2022-05-02, QO 2022-05-16

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              dan.larkin-york@mongodb.com Dan Larkin-York
              david.percy@mongodb.com David Percy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: