diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-04-10 16:29:22 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-04-15 12:43:06 -0400 |
commit | 843605c469941c972d739eb9e68bb470294c3a3a (patch) | |
tree | 4fe2aedba9ce999fa64b8c940c6c6ec50495b7f0 /src/mongo/s/config.cpp | |
parent | a929268ad5dea50223fefd3228a8aa168feda4ac (diff) | |
download | mongo-843605c469941c972d739eb9e68bb470294c3a3a.tar.gz |
SERVER-18009 Move drop collection to the catalog manager
Diffstat (limited to 'src/mongo/s/config.cpp')
-rw-r--r-- | src/mongo/s/config.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 |