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

Change DBLock to use DatabaseName

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Server Serverless 2022-06-27, Server Serverless 2022-07-11

      Currently, DBLock takes in a dbName as a string, and then passes the to the ResourceId constructor, which takes the hash of the string. We should change the DBLock constructor to take in DatabaseName, but should still pass a string to the ResourceId constructor. ResourceId computes a hash of the string it is passed, and this is what we actually take the lock on.

            Assignee:
            janna.golden@mongodb.com Janna Golden
            Reporter:
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: