summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/index_catalog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/index_catalog.cpp')
-rw-r--r--src/mongo/db/catalog/index_catalog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/index_catalog.cpp b/src/mongo/db/catalog/index_catalog.cpp
index faf7ad134e1..382c060bdbd 100644
--- a/src/mongo/db/catalog/index_catalog.cpp
+++ b/src/mongo/db/catalog/index_catalog.cpp
@@ -973,12 +973,12 @@ Status IndexCatalog::_dropIndex(OperationContext* opCtx, IndexCatalogEntry* entr
invariant(_entries.release(entry->descriptor()) == entry);
opCtx->recoveryUnit()->registerChange(
new IndexRemoveChange(opCtx, _collection, &_entries, entry));
+ _collection->infoCache()->droppedIndex(opCtx, indexName);
entry = NULL;
_deleteIndexFromDisk(opCtx, indexName, indexNamespace);
_checkMagic();
- _collection->infoCache()->droppedIndex(opCtx, indexName);
return Status::OK();
}