[SERVER-28499] StorageInterfaceImpl::_findOrDeleteDocuments() should consider using a different db_raii helper Created: 24/Mar/17 Updated: 06/Dec/22 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Charlie Swanson | Assignee: | Backlog - Replication Team |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Replication
|
||||||||
| Participants: | |||||||||
| Description |
|
I've spoke to benety.goh, and we believe the only users of this class are working with non-replicated collections, but if it were ever to be used with replicated collections, this lock acquisition is a bit suspect. Namely, it is not using AutoGetCollectionForRead even though it might perform reads. AutoGetCollectionForRead will ensure that a user's request for a readConcern of majority will be met, which maybe should happen here. |