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

_id field not taken from query during upsert on update

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.2
    • Component/s: Write Ops
    • Labels:
    • Operating System:
      ALL

      Description

      > db.u.update({_id:1}, {name:1}, true)
      > db.u.find()
      { "_id" : ObjectId("4f5e509be3438c7dbcf2b056"), "name" : 1 }

      should produce this:

      > db.u.find()
      { "_id" : 1, "name" : 1 }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              scotthernandez Scott Hernandez
              Reporter:
              scotthernandez Scott Hernandez
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: