[SERVER-49866] Remove TempRelease Created: 24/Jul/20  Updated: 29/Oct/23  Resolved: 11/Nov/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0

Type: Improvement Priority: Major - P3
Reporter: Louis Williams Assignee: Gabriel Marks
Resolution: Fixed Votes: 0
Labels: neweng, techdebt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-43458 Remove TempRelease in dropDatabase Closed
is related to SERVER-62173 Applying dropIndexes oplog entry can ... Closed
is related to SERVER-62759 applyOps of dropDatabase causes invar... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-11-15
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 11/Nov/21 ]

Author:

{'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}

Message: SERVER-49866 Remove TempRelease
Branch: master
https://github.com/mongodb/mongo/commit/63ea241ba9d2224987440735fed9e19eee23b1d9

Generated at Thu Feb 08 05:21:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.