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

Mongos should forward negative ntoreturn to the shards using a find command with a positive limit rather than a positive ntoreturn

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.1.9
    • None
    • Querying, Sharding
    • None
    • Fully Compatible
    • ALL
    • QuInt A (10/12/15)

    Description

      Negative ntoreturn implies a limit (as well as implying singleBatch:true). Since we forward the query to the shards as a find command, and since find command offers a true limit parameter in addition to ntoreturn, we should pass the absolute value of ntoreturn as a find command limit.

      Attachments

        Activity

          People

            misha.tyulenev@mongodb.com Misha Tyulenev
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: