summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Kleinman <samk@10gen.com>2012-08-08 09:45:57 -0400
committerSam Kleinman <samk@10gen.com>2012-08-08 09:45:57 -0400
commit907613b7e589db5141a6e16d31e997da6062931d (patch)
treebd66db4ac22a65de10abd19b0a61bfb67fd03181
parent25e2b7e057b90a5501e78f22105c8658e4479e74 (diff)
downloadmongo-907613b7e589db5141a6e16d31e997da6062931d.tar.gz
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) {