Skip to content

Unclear locking behavior when repairing a database #1939

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions source/faq/concurrency.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ typically short lived operations involving multiple databases, still
require a global "instance" wide lock. Before 2.2, there is only one
"global" lock per :program:`mongod` instance.

For example, if you have six databases and one takes a write lock, the
other five are still available for read and write.
For example, if you have six databases and one takes a database-level
write lock, the other five are still available for read and write. A
global lock makes all six databases unavailable during the operation.

How do I see the status of locks on my :program:`mongod` instances?
-------------------------------------------------------------------
Expand Down Expand Up @@ -159,6 +160,9 @@ The following MongoDB operations lock multiple databases:
- :method:`db.copyDatabase()` must lock the entire :program:`mongod`
instance at once.

- :method:`db.repairDatabase()` obtains a global write lock and will block
other operations until it completes.

- :term:`Journaling <journal>`, which is an internal operation, locks
all databases for short intervals. All databases share a single
journal.
Expand Down