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

Add support to CollectionSnapshot for locking multiple collections without recursively locking db lock

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Sharding EMEA
    • Fully Compatible
    • Sharding EMEA 2023-02-20

      When acquiring more than one collection in a sigle acquisition. recursively locking the dbLock (thus the global lock too) would prevent yielding. The existing AutoGetCollection takes care of this by only locking the dbLock once. CollectionSnapshot should follow a similar approach.

            Assignee:
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Reporter:
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: