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

$rename updates

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.2
    • Component/s: Write Ops
    • Labels:
      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

          Issue Links

            Activity

              People

              • Votes:
                28 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: