https://github.com/mongodb/mongo/blob/r3.7.0/src/mongo/s/catalog/sharding_catalog_manager_database_operations.cpp#L144
Otherwise, it would be accessing invalid memory.