From 843605c469941c972d739eb9e68bb470294c3a3a Mon Sep 17 00:00:00 2001 From: Kaloian Manassiev Date: Fri, 10 Apr 2015 16:29:22 -0400 Subject: SERVER-18009 Move drop collection to the catalog manager --- src/mongo/s/config.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mongo/s/config.cpp') diff --git a/src/mongo/s/config.cpp b/src/mongo/s/config.cpp index 4740c0941a6..c1f907964ca 100644 --- a/src/mongo/s/config.cpp +++ b/src/mongo/s/config.cpp @@ -740,7 +740,8 @@ namespace mongo { LOG(1) << "\t dropping sharded collection: " << i->first << endl; i->second.getCM()->getAllShards( allServers ); - i->second.getCM()->drop(); + + uassertStatusOK(grid.catalogManager()->dropCollection(i->first)); // We should warn, but it's not a fatal error if someone else reloaded the db/coll as // unsharded in the meantime -- cgit v1.2.1