summaryrefslogtreecommitdiff
path: root/shell/collection.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-04-15 22:22:40 -0400
committerEliot Horowitz <eliot@10gen.com>2009-04-15 22:22:40 -0400
commit23286dd9fcd1648c91166a319949729fe38efa76 (patch)
treeba1b5cd00188f385a7bf852259b3ad7f12ffaff9 /shell/collection.js
parentdb0cf082ecff3d3b8cff1f05bd7ff7cf5cf03998 (diff)
downloadmongo-23286dd9fcd1648c91166a319949729fe38efa76.tar.gz
server side drop now does indexes and collection
Diffstat (limited to 'shell/collection.js')
-rw-r--r--shell/collection.js12
1 files changed, 1 insertions, 11 deletions
diff --git a/shell/collection.js b/shell/collection.js
index 4ba1b4145ea..4b9afe33b5e 100644
--- a/shell/collection.js
+++ b/shell/collection.js
@@ -186,17 +186,7 @@ DBCollection.prototype.dropIndexes = function(){
DBCollection.prototype.drop = function(){
- var res = this.dropIndexes();
- if( ! res )
- return res;
-
- if( ! res.ok ) {
- res.errmsg = "dropping indexes..." + res.errmsg;
- return res;
- }
-
- res = this._db.runCommand( { drop: this.getName() } );
- return res;
+ return this._db.runCommand( { drop: this.getName() } );
}
DBCollection.prototype.validate = function() {