Details
-
Bug
-
Status: Closed
-
Minor - P4
-
Resolution: Gone away
-
2.8.0-rc0
-
None
-
Storage Execution
-
ALL
-
Quint Iteration 3
Description
Problem
From copydb.cpp
https://github.com/mongodb/mongo/blob/master/src/mongo/db/commands/copydb.cpp#L190
if (fromSelf) {
|
// SERVER-4328 todo lock just the two db's not everything for the fromself case
|
Lock::GlobalWrite lk(txn->lockState());
|
return cloner.go(txn, todb, fromhost, cloneOptions, NULL, errmsg);
|
}
|
Solution
For this case, perhaps taking out two DB_X locks rather than a G_X lock.