AutoGetCollection doesn't always take db lock

XMLWordPrintableJSON

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

      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
            Reporter:
            Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: