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

Perform collectionUUID check inside of AutoGetCollection

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution Team 2022-10-31

      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.

            Assignee:
            gregory.noma@mongodb.com Gregory Noma
            Reporter:
            gregory.noma@mongodb.com Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: