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

Reodering of update clause causes timestamp to not be auto-populated

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.4.4
    • Write Ops
    • None
    • ALL

    Description

      db.col.update({_id:1},{$setOnInsert:{ts:new BsonTimestamp(0,0)}},

      {upsert:true}

      );

      should auto-populate the timestamp like a regular insert would. (i.e. if the timestamp is the first or second entry in the $setOnInsert sub-document.)

      Attachments

        Activity

          People

            Unassigned Unassigned
            tanglebones Clifford Hammerschmidt
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: