[SERVER-68337] Perform collectionUUID check inside of AutoGetCollection Created: 26/Jul/22 Updated: 29/Oct/23 Resolved: 21/Oct/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.2.0-rc0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Gregory Noma | Assignee: | Gregory Noma |
| 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: | Execution Team 2022-10-31 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Description |
|
For the commands which take a collectionUUID parameter, typically we take an AutoGetCollection to acquire the collection followed by a checkCollectionUUIDMismatch. We can streamline this process a bit by allowing AutoGetCollection to take an optional parameter for the expected UUID. This would also allow us to skip the lookup in the view catalog when collectionUUID is specified, preventing an InvalidViewDefinition error if invalid view definitions are present in system.views. |
| Comments |
| Comment by Githook User [ 21/Oct/22 ] |
|
Author: {'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}Message: |