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

explain forces a negative limit but find does not

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      A limit passed to explain is forced to be negative

      n._limit = Math.abs(n._limit) * -1;

      But this is not the case with a find limit.

      This can potentially cause confusion when explain queries do not behave the same as their non explain counterparts.

      Attachments

        Activity

          People

            Unassigned Unassigned
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: