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

AutoGetCollection doesn't always take db lock

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • Sharding EMEA 2022-07-11

      AutoGetCollection (AGC) accepts a NamespaceStringOrUUID which can either store a full namespace string or a database name and UUID.

      This call to NamespaceStringOrUUID::db() does not consider the case where AGC is constructed with a full namespace string. As a result, it takes a database lock on an empty namespace.

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

              Created:
              Updated:
              Resolved: