[SERVER-56512] use AutoGetOrCreateCollection to create system.views in _createCollection() Created: 30/Apr/21 Updated: 06/Dec/22 Resolved: 30/Apr/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Storage |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Benety Goh | Assignee: | Backlog - Storage Execution Team |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Storage Execution
|
||||||||
| Participants: | |||||||||
| Description |
|
The _createCollection() uassert mentioned in the description for Going by the comment above the assertion, we may be able to tell if the collection lock acquisition is requested by UUID or by namespace from the nsOrUUID argument. For _createCollection(), we can probably convert to a combination of AutoGetDb and CollectionLock for now and defer the work on refining the assertion condition in AutoGetCollection. Alternative, we could upgrade the lock mode (using this helper function) for system.views to MODE_X in _createCollection(). |
| Comments |
| Comment by Benety Goh [ 30/Apr/21 ] |
|
This ticket was mistakenly filed twice. |