Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
Replication
-
ALL
Description
During code inspection I noticed that getLocalOplogCollection acquires DB + collection locks and then the two callers in oplog.cpp also acquire these locks.
This should be changed so that locks are acquired only once.
Also, getLocalOplogCollection uses OldClientContext with the shard version check set to true (default argument). This is probably not correct either.