Commands that operate on collection namespaces should only call ViewCatalog::lookup() if Database::getCollection() returns nullptr. This avoids an unnecessary failure if a command is run on a valid collection namespace but the system.views collection contains an invalid view definition.
In addition, we should probably not access the ViewCatalog if the namespace is virtualized.
- related to
-
SERVER-25723 don't terminate in presence of invalid views
- Closed