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

Dont call getLastError if last statement didn't go to server

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.1.0
    • None
    • Shell
    • None

    Description

      > db.getLastError()
      final reduce failed:

      { result: "tmp.mr.mapreduce_1278955206_2", assertion: "invoke failed: JS Error: TypeError: Array.sum is not a function nofile_b:1", assertionCode: 9004, errmsg: "db assertion failure", ok: 0.0 }

      > function foo(){}
      final reduce failed:

      { result: "tmp.mr.mapreduce_1278955206_2", assertion: "invoke failed: JS Error: TypeError: Array.sum is not a function nofile_b:1", assertionCode: 9004, errmsg: "db assertion failure", ok: 0.0 }

      Attachments

        Activity

          People

            antoine Antoine Girbal
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: