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

Permit $rename with non-viable path as the source

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying, Write Ops
    • Labels:
      None
    • Query Execution

      The current implementation of $rename treats as an error any rename operation with a source path that is "non-viable": .e.g., attempting to rename "a.b" in a document that contains

      {a: 1}

      . The check for that includes a TODO noting that we could instead treat this as a no-op, as we do for any $rename with a non-existent source path.

      If we do want to make that change, now would be a good time, as we are making backwards-incompatible changes to update functionality.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            justin.seyster@mongodb.com Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: