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

use AutoGetOrCreateCollection to create system.views in _createCollection()

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Storage
    • Storage Execution EMEA

    Description

      The _createCollection() uassert mentioned in the description for SERVER-47123 was introduced in SERVER-37283.

      Going by the comment above the assertion, we may be able to tell if the collection lock acquisition is requested by UUID or by namespace from the nsOrUUID argument.

      For _createCollection(), we can probably convert to a combination of AutoGetDb and CollectionLock for now and defer the work on refining the assertion condition in AutoGetCollection.

      Alternative, we could upgrade the lock mode (using this helper function) for system.views to MODE_X in _createCollection().

      Attachments

        Activity

          People

            backlog-server-execution-emea@mongodb.com [DO NOT USE] Backlog - Storage Execution EMEA
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: