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

count command returns zero in some error cases rather than reporting an error with ok:false

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.1.2
    • None
    • Querying
    • None

    Description

      if ( !res->complete() )

      { log() << "Count with ns: " << ns << " and query: " << query << " failed with exception: " << res->exception() << endl; return 0; }

      If none of the query plans were successful, runCount() returns a count of zero and this is forwarded by the count command implementation. This may be very old behavior predating the current query optimizer so if we change this it might be prudent to do so carefully.

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: