renameCollection wrapper accepts wrong arguments and fails silently

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • 3.3.14
    • Affects Version/s: 2.0.6, 2.0.7
    • Component/s: Shell
    • Environment:
      Linux
    • Fully Compatible
    • ALL
    • Platforms 2016-09-19
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      Trying to use renameCollection, I mistakenly mixed the syntax of the renameCollection and the wrapper function db.collection.renameCollection().

      I typed > db.source-collection.renameCollection(

      { to : "target-collection", dropTarget : true }

      )

      And then, the "source-collection" disappeared, and a new one appeared and is listed as "[object Object]" with db.getCollectionNames().

      Apparently the collection was renamed after the first argument of the wrapper.

            Assignee:
            Matt Cotter (Inactive)
            Reporter:
            Luciano Issoe
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: