Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-28499

StorageInterfaceImpl::_findOrDeleteDocuments() should consider using a different db_raii helper

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Replication

      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.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: