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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.4.4
    • Component/s: Write Ops
    • None
    • ALL

      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.)

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

              Created:
              Updated:
              Resolved: