Similar to SERVER-40994, we should lock system.views collection in the end (after any other collection lock acquisitions). Otherwise deadlock between system.views and the view namespace may happen.
- related to
-
SERVER-40994 renameCollection should always lock system.views collection after everything else
- Closed