summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorDivjot Arora <divjot.arora@10gen.com>2019-02-11 13:57:17 -0500
committerDivjot Arora <divjot.arora@10gen.com>2019-02-13 15:01:33 -0500
commitf910e93260a6a76b432510a7beef9593e42ec872 (patch)
treeb3f7833c667bb702b47efaac47a8e6595a74b46b /src/mongo
parent4a0d769e44e6a022e7c129c1beca6a7c86cdd818 (diff)
downloadmongo-f910e93260a6a76b432510a7beef9593e42ec872.tar.gz
SERVER-36174 Change MONGO_UNREACHABLE to fassert
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/db/storage/kv/kv_database_catalog_entry.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/storage/kv/kv_database_catalog_entry.cpp b/src/mongo/db/storage/kv/kv_database_catalog_entry.cpp
index 32d3c533a72..981eeab24a4 100644
--- a/src/mongo/db/storage/kv/kv_database_catalog_entry.cpp
+++ b/src/mongo/db/storage/kv/kv_database_catalog_entry.cpp
@@ -92,6 +92,10 @@ IndexAccessMethod* KVDatabaseCatalogEntry::getIndex(OperationContext* opCtx,
return new WildcardAccessMethod(index, sdi);
log() << "Can't find index for keyPattern " << desc->keyPattern();
- MONGO_UNREACHABLE;
+
+ // We should never reach this point.
+ bool foundIndex = false;
+ fassert(51072, foundIndex);
+ return nullptr;
}
} // namespace mongo