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

UpdateResult::mod always set to 0 when _id doesn't match anything

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Write Ops
    • Labels:
    • Operating System:
      ALL

      Description

      AFAICT, mod should be 1 if it's a $-mod update, whether or not it finds a doc to mod. _updateById sets mod to 0 indiscriminately if the _id is not found.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: