We should consider removing the TempRelease RAII type. It is a bug-prone construct that should be replaced by explicit RAII lock acquisitions and releases.
The usage in oplog.cpp is no longer necessary because two-phase index builds do not allow this behavior in steady-state replication.
The usage in drop_database.cpp is no longer necessary, per the comment.
The usages in cloner.cpp need to be evaluated.
- is related to
-
SERVER-62173 Applying dropIndexes oplog entry can get BackgroundOperationInProgressForNamespace if FCV not upgraded
- Closed
-
SERVER-62759 applyOps of dropDatabase causes invariant failure
- Closed
- related to
-
SERVER-43458 Remove TempRelease in dropDatabase
- Closed