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

Remove locking dasserts/invariants from implementations of RecordStore

    • Storage Execution
    • Fully Compatible
    • Execution Team 2024-08-19

      The RecordStore/SortedDataInterface and their different implementations are internal detail of the higher-level MongoDB concept of "Collection". As such it shouldn't be checking whether there is a lock on a collection, because that is a layering violation. Furthermore, we have a lot of tests which use LockerNoop just to avoid these invariants (LockerNoop returns true for the assertions of whether something is locked).

      This ticket is to remove all assertions like this one.

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: