diff options
Diffstat (limited to 'src/mongo/db/exec/sbe/stages/ix_scan.cpp')
-rw-r--r-- | src/mongo/db/exec/sbe/stages/ix_scan.cpp | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/src/mongo/db/exec/sbe/stages/ix_scan.cpp b/src/mongo/db/exec/sbe/stages/ix_scan.cpp index 71da0e96029..5fdfafd2c05 100644 --- a/src/mongo/db/exec/sbe/stages/ix_scan.cpp +++ b/src/mongo/db/exec/sbe/stages/ix_scan.cpp @@ -27,8 +27,6 @@ * it in the license file. */ -#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kQuery - #include "mongo/platform/basic.h" #include "mongo/db/exec/sbe/stages/ix_scan.h" @@ -39,8 +37,6 @@ #include "mongo/db/exec/sbe/values/bson.h" #include "mongo/db/exec/trial_run_tracker.h" #include "mongo/db/index/index_access_method.h" -#include "mongo/logv2/log.h" -#include "mongo/util/stacktrace.h" namespace mongo::sbe { IndexScanStage::IndexScanStage(UUID collUuid, @@ -121,18 +117,10 @@ void IndexScanStage::prepare(CompileCtx& ctx) { auto indexCatalog = _coll->getIndexCatalog(); auto indexDesc = indexCatalog->findIndexByName(_opCtx, _indexName); - // TODO (SERVER-64297) Revert this uassert to a tassert. - if (!indexDesc) { - LOGV2_WARNING(6428200, - "Unable to find index; dumping stack trace", - "indexName"_attr = _indexName, - "collectionName"_attr = _collName); - printStackTrace(); - uasserted(4938500, - str::stream() << "could not find index named '" << _indexName - << "' in collection '" << _collName << "'"); - } - + tassert(4938500, + str::stream() << "could not find index named '" << _indexName << "' in collection '" + << _collName << "'", + indexDesc); _weakIndexCatalogEntry = indexCatalog->getEntryShared(indexDesc); auto entry = _weakIndexCatalogEntry.lock(); tassert(4938503, |