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

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Works as Designed
    • 2.4.4
    • None
    • 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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: