diff options
author | Divjot Arora <divjot.arora@10gen.com> | 2019-02-11 13:57:17 -0500 |
---|---|---|
committer | Divjot Arora <divjot.arora@10gen.com> | 2019-02-13 15:01:33 -0500 |
commit | f910e93260a6a76b432510a7beef9593e42ec872 (patch) | |
tree | b3f7833c667bb702b47efaac47a8e6595a74b46b /src/mongo | |
parent | 4a0d769e44e6a022e7c129c1beca6a7c86cdd818 (diff) | |
download | mongo-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.cpp | 6 |
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 |