summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Whalen <ian.whalen@gmail.com>2012-08-08 07:28:01 -0700
committerIan Whalen <ian.whalen@gmail.com>2012-08-08 07:28:01 -0700
commitc879a4c3a04cad2f13c1ced41ac648f93dbbb839 (patch)
tree3dd1d1c8c5700517ccc54e2d4562297529906d8a
parentd7b06d07eec560cf680798c2bea4e63ee2c089b4 (diff)
parent907613b7e589db5141a6e16d31e997da6062931d (diff)
downloadmongo-c879a4c3a04cad2f13c1ced41ac648f93dbbb839.tar.gz
Merge pull request #282 from tychoish/clone-collection-warning
SERVER-6731 cloneCollection warning correction
-rw-r--r--src/mongo/db/cloner.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/cloner.cpp b/src/mongo/db/cloner.cpp
index 0a154e7457a..8ca08303d85 100644
--- a/src/mongo/db/cloner.cpp
+++ b/src/mongo/db/cloner.cpp
@@ -567,10 +567,9 @@ namespace mongo {
virtual LockType locktype() const { return NONE; }
CmdCloneCollection() : Command("cloneCollection") { }
virtual void help( stringstream &help ) const {
- help << "{ cloneCollection: <namespace>, from: <host> [,query: <query_filter>] [,copyIndexes:<bool>] }"
+ help << "{ cloneCollection: <collection>, from: <host> [,query: <query_filter>] [,copyIndexes:<bool>] }"
"\nCopies a collection from one server to another. Do not use on a single server as the destination "
"is placed at the same db.collection (namespace) as the source.\n"
- "Warning: the local copy of 'ns' is emptied before the copying begins. Any existing data will be lost there."
;
}
virtual bool run(const string& dbname , BSONObj& cmdObj, int, string& errmsg, BSONObjBuilder& result, bool fromRepl) {