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

$rename updates

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.7.2
    • None
    • Write Ops
    • None

    Description

      db.rename.insert({_id:1, a:1})
      db.rename.update({_id:1}, {$rename:{'a':'b'}})
      db.find({_id:1})
      {_id:1, b:1}

      oplog needs to be rewritten as $unset/$set or a op in the middle could cause problems

      Attachments

        Activity

          People

            aaron Aaron Staple
            mathias@mongodb.com Mathias Stearn
            Votes:
            28 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: