summaryrefslogtreecommitdiff
path: root/src/mongo/shell
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2015-01-09 16:51:06 -0500
committerBenety Goh <benety@mongodb.com>2015-01-15 11:01:58 -0500
commit14424674ca204de09b8f9b37fc007cbde81d1bc9 (patch)
tree4f666e7e50099cfcbd31c0501604a5913a663e0b /src/mongo/shell
parent01b4c851c2392857bfb6ef1c47d704a0dbb3daa9 (diff)
downloadmongo-14424674ca204de09b8f9b37fc007cbde81d1bc9.tar.gz
SERVER-16782 fixed db.collection shell helper test to work with sharding passthrough test. also removed db.collection.clean() shell helper
Diffstat (limited to 'src/mongo/shell')
-rw-r--r--src/mongo/shell/collection.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/shell/collection.js b/src/mongo/shell/collection.js
index df3d05636b6..4ce212201b7 100644
--- a/src/mongo/shell/collection.js
+++ b/src/mongo/shell/collection.js
@@ -1041,14 +1041,6 @@ DBCollection.prototype.count = function( x ){
return this.find( x ).count();
}
-/**
- * Drop free lists. Normally not used.
- * Note this only does the collection itself, not the namespaces of its indexes (see cleanAll).
- */
-DBCollection.prototype.clean = function() {
- return this._dbCommand( { clean: this.getName() } );
-}
-
DBCollection.prototype.hashAllDocs = function() {
var cmd = { dbhash : 1,
collections : [ this._shortName ] };