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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.1.9
    • Affects Version/s: None
    • Component/s: Querying, Sharding
    • None
    • Fully Compatible
    • ALL
    • QuInt A (10/12/15)
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Misha Tyulenev (Inactive)
            Reporter:
            David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: