[SERVER-62918] Change DBLock to use DatabaseName Created: 24/Jan/22 Updated: 29/Oct/23 Resolved: 27/Jun/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.1.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Janna Golden | Assignee: | Janna Golden |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||
| Sprint: | Server Serverless 2022-06-27, Server Serverless 2022-07-11 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Description |
|
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. |
| Comments |
| Comment by Githook User [ 27/Jun/22 ] |
|
Author: {'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}Message: |