Details
-
Task
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
Description
https://docs.mongodb.org/manual/faq/concurrency/
The following administrative commands lock the database but only hold the lock for a very short time:
|
|
db.collection.dropIndex(),
|
db.getLastError(),
|
db.isMaster(),
|
rs.status() (i.e. replSetGetStatus),
|
db.serverStatus(),
|
db.auth(), and
|
db.addUser().
|
|
I deep into the source codeļ¼and did some test work, found that the following operaiotn will not lock the database, if this document is not update to date?
db.getLastError(),
|
db.isMaster(),
|
rs.status() (i.e. replSetGetStatus),
|
db.serverStatus(),
|