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

renameCollection "to" param as an array

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • 1.7.0
    • Write Ops
    • None
    • Query

    Description

      Change renameCollection to support an array of collection names as the destination(s) so that you don't delete the destination collection.

      That would support a primary collection with some postfix value (like a number) of "archived" collections. You could do something like this:

      {renameCollection:'log", to:["log.1", "log.2"]}

      (much like log rotation)

      Maybe this would be better as a new command called "moveCollection".

      Attachments

        Activity

          People

            backlog-server-query Backlog - Query Team (Inactive)
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: