Details
-
Task
-
Resolution: Done
-
Major - P3
-
2.8.0-rc0
Description
Problem
https://github.com/mongodb/mongo/blob/master/src/mongo/db/commands/collection_to_capped.cpp#L217
// calls renamecollection which does a global lock, so we must too:
|
//
|
Lock::GlobalWrite globalWriteLock(txn->lockState());
|
Client::Context ctx(txn, dbname);
|
Per SERVER-15723, the lock taken for renameCollection may change, therefore this command should
- match any change made to renameCollection
- this probably only needs to be DB_X lock because convertToCapped does not take a namespace parameter
Attachments
Issue Links
- is related to
-
DOCS-10992 convertToCapped is missing the 'global write lock' warning
-
- Closed
-
- related to
-
DOCS-4502 Remove 'global write lock' mention from convertToCapped page
-
- Closed
-