From a2898effb4bb85611eb17524fd1d7782fb58616f Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Thu, 16 Apr 2009 09:55:50 -0400 Subject: [PATCH] no longor drop_indexes when we drop_collection --- lib/mongo/db.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/mongo/db.rb b/lib/mongo/db.rb index 6b2c81a..aea3817 100644 --- a/lib/mongo/db.rb +++ b/lib/mongo/db.rb @@ -239,8 +239,6 @@ module XGen def drop_collection(name) return true unless collection_names.include?(full_coll_name(name)) - coll = collection(name) - coll.drop_indexes # Mongo requires that we drop indexes manually ok?(db_command(:drop => name)) end