[SERVER-73004] Add support to CollectionSnapshot for locking multiple collections without recursively locking db lock Created: 18/Jan/23 Updated: 29/Oct/23 Resolved: 15/Feb/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.0.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Jordi Serra Torrens | Assignee: | Jordi Serra Torrens |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | PM-2144-Milestone-0 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Assigned Teams: |
Sharding EMEA
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Sprint: | Sharding EMEA 2023-02-20 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
When acquiring more than one collection in a sigle acquisition. recursively locking the dbLock (thus the global lock too) would prevent yielding. The existing AutoGetCollection takes care of this by only locking the dbLock once. CollectionSnapshot should follow a similar approach. |
| Comments |
| Comment by Githook User [ 15/Feb/23 ] |
|
Author: {'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}Message: |