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

Log/getLastError/profile output reports nupdated:1 even if no change

    • ALL

      Repro:

      > db.d.insert({_id:1})
      > db.d.update({}, {$unset:{fake:1}});db.getLastErrorObj()
      {
      	"updatedExisting" : true,
      	"n" : 1,
      	"lastOp" : {
      		"t" : 1360957938000,
      		"i" : 1
      	},
      	"connectionId" : 86,
      	"err" : null,
      	"ok" : 1
      }
      > db.d.find()
      {_id:1}
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            daniel.roberts@10gen.com daniel.roberts@10gen.com
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: