summaryrefslogtreecommitdiff
path: root/shell/collection.js
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-04-16 10:18:09 -0400
committerAaron <aaron@10gen.com>2009-04-16 10:18:09 -0400
commit94217c0d662f97775bddb9926aa8e8e536e0dd7d (patch)
tree83e3dc23c018a16854e82aed0e4061823ea760f9 /shell/collection.js
parent3fce2036d848c8f678893ba40707be489dbaae28 (diff)
downloadmongo-94217c0d662f97775bddb9926aa8e8e536e0dd7d.tar.gz
reset shell index cache when dropping collection
Diffstat (limited to 'shell/collection.js')
-rw-r--r--shell/collection.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/collection.js b/shell/collection.js
index 4b9afe33b5e..75cc0488551 100644
--- a/shell/collection.js
+++ b/shell/collection.js
@@ -186,6 +186,7 @@ DBCollection.prototype.dropIndexes = function(){
DBCollection.prototype.drop = function(){
+ this.resetIndexCache();
return this._db.runCommand( { drop: this.getName() } );
}