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

Update does not ensure an _id field

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.5
    • Component/s: Storage, Write Ops
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible

      Description

      Just as insert now always creates an _id field, update should do the same to be consistent. See SERVER-12331 as guide.

      Currently update only creates/requires an _id field if there is an _id index. It seems we should now ensure an the _id field for each updated document modified/inserted.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: