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

AutoGetCollection doesn't always take db lock

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • ALL
    • Sharding EMEA 2022-07-11

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: