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

nextSafe should check query failure bit before inspecting object for error

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.7.7
    • Fix Version/s: 2.7.8
    • Component/s: Internal Client
    • Labels:
      None
    • Environment:
      All

      Description

      Scott Hernandez brought this to our attention. We should examine wasError field before looking inside the bson obj to see there is an $err field.

      It will be faster to check this field first than inspect the document and it will also prevent possible errors where a $err field may exist in the but not signal an error. This is necessary for some mongodb tools that may have to deal with such documents.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tyler@10gen.com Tyler Brock
              Reporter:
              tyler@10gen.com Tyler Brock
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: