Navigation
This version has reached end of life on October 2016. Learn more about upgrading your version of MongoDB.

closeAllDatabases

closeAllDatabases

closeAllDatabases is an internal command that invalidates all cursors and closes the open database files. The next operation that uses the database will reopen the file.

Warning

This command obtains a global write lock and will block other operations until it has completed.