Info
When an (invalid) todb argument that contains a dot is provided, copyDatabase just ignores everything that comes after the dot, and copy to the destination database instead of failing.
e.g. something like this
> db.copyDatabase("test", "local.whatever", "localhost")
will return:
{ "ok" : 1 }
and the content of tests will be copied in "local" database.
Top User Comments
xgen-internal-githook commented on Fri, 10 Oct 2014 23:32:09 +0000:
Author:
{u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}
Message: SERVER-15280 Validate copydb command "todb" field
Branch: master
https://github.com/mongodb/mongo/commit/050c963ea58b4fb02dde7ddc70d4cdc6afc3d501