summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/db/catalog/index_catalog_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/index_catalog_impl.cpp b/src/mongo/db/catalog/index_catalog_impl.cpp
index 8126d4ffaa8..52dd1d224a0 100644
--- a/src/mongo/db/catalog/index_catalog_impl.cpp
+++ b/src/mongo/db/catalog/index_catalog_impl.cpp
@@ -1365,7 +1365,7 @@ void IndexCatalogImpl::_deleteIndexFromDisk(OperationContext* opCtx,
IndexCatalog::InclusionPolicy::kFrozen));
catalog::DataRemoval dataRemoval = catalog::DataRemoval::kTwoPhase;
- if (!entry || (entry && !entry->getSharedIdent())) {
+ if (!entry || !entry->getSharedIdent()) {
// getSharedIdent() returns a nullptr for unfinished index builds. These indexes can be
// removed immediately as they weren't ready for use yet.
dataRemoval = catalog::DataRemoval::kImmediate;