Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
None
Description
The documentation for the cloneCollection command (http://www.mongodb.org/display/DOCS/cloneCollection+Command) refers to <namespace> of the collection you are cloning. In usage however, you only specify the collection name. Specifying the fully qualified namespace for the collection will result in nothing being copied. This is because we prepend the current database name to the string given.
For example: db.cloneCollection("localhost:27017", "test.some_collection") will try and clone the collection "test.test.some_collection".
Attachments
Issue Links
- related to
-
SERVER-6719 cloneCollection should allow parsing a namespace
-
- Closed
-