summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/drop_indexes.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2017-05-22 11:57:52 -0400
committerBenety Goh <benety@mongodb.com>2017-05-23 18:30:12 -0400
commita4a7575ab62fc686d82e6e5706467d55cdfd6b08 (patch)
treef2a648d35a45c9b6bcb49bd2e4f9ce6fa3d14cab /src/mongo/db/catalog/drop_indexes.cpp
parentf56ae945275aa9360d2d6eae192b64d558ede20b (diff)
downloadmongo-a4a7575ab62fc686d82e6e5706467d55cdfd6b08.tar.gz
SERVER-29274 IndexCatalog::dropAllIndexes() returns void.
This function throws an exception on error or fasserts.
Diffstat (limited to 'src/mongo/db/catalog/drop_indexes.cpp')
-rw-r--r--src/mongo/db/catalog/drop_indexes.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mongo/db/catalog/drop_indexes.cpp b/src/mongo/db/catalog/drop_indexes.cpp
index 3ef36e6dbd7..2081f58d6ae 100644
--- a/src/mongo/db/catalog/drop_indexes.cpp
+++ b/src/mongo/db/catalog/drop_indexes.cpp
@@ -62,10 +62,7 @@ Status wrappedRun(OperationContext* opCtx,
if (indexToDelete == "*") {
std::map<std::string, BSONObj> droppedIndexes;
- Status s = indexCatalog->dropAllIndexes(opCtx, false, &droppedIndexes);
- if (!s.isOK()) {
- return s;
- }
+ indexCatalog->dropAllIndexes(opCtx, false, &droppedIndexes);
// We log one op for every dropped index so that we can roll them back if necessary.
for (auto const& idx : droppedIndexes) {