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

Directly take DBLock and CollectionLock in onCannotImplicitlyCreateCollection

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.4
    • Affects Version/s: 3.7.3
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding 2018-04-09

      We should not use the RAII helpers when taking the collection lock in onCannotImplicitlyCreateCollection (to check if the collection has already been created), because they can throw in the shardVersion or databaseVersion checks.

            Assignee:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Reporter:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: