0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 00:56:44 +01:00

Additional fix for cloneCollection() js function

This commit is contained in:
Aaron 2009-02-26 12:16:48 -05:00
parent c7496cc9bf
commit e910263ed2

View File

@ -176,7 +176,7 @@ DB.prototype.cloneCollection = function(from, collection, query) {
collection = this._name + "." + collection;
query = query || {};
//this.resetIndexCache();
return this._dbCommand( { cloneCollection:collection, fromhost:from, query:query } );
return this._dbCommand( { cloneCollection:collection, from:from, query:query } );
}