From eb5d4f61bf3d89877aef4e358526f6cd6e370b51 Mon Sep 17 00:00:00 2001 From: "A. Jesse Jiryu Davis" Date: Mon, 10 Nov 2014 19:48:42 -0500 Subject: [PATCH] Note that mongos does not support copydb with auth. --- pymongo/mongo_client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pymongo/mongo_client.py b/pymongo/mongo_client.py index da96a8421..a40b44cca 100644 --- a/pymongo/mongo_client.py +++ b/pymongo/mongo_client.py @@ -1405,6 +1405,10 @@ class MongoClient(common.BaseObject): MongoDB 2.8 and later, MONGODB-CR (MongoDB Challenge Response protocol) for older servers. + .. note:: mongos does not support copying a database from a server + with authentication, see + `SERVER-6427 `_. + :Parameters: - `from_name`: the name of the source database - `to_name`: the name of the target database