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

Add updateWithDamages API that supports index update and validators

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.1 Required
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Execution Team 2021-05-31

      Description

      We need an interface to do updateWithDamages when we have both a DamageVector and BSONObj representing the new value. We need to be able to pass the updated BSONObj to IndexCatalog::updateRecord and the validator.

      Consider adding a slightly different DamageVector/DamageEvent types that don't require all target buffers to be located in a single contiguous buffer.

      The current updateWithDamages API is not allowed to use when there are a validator set on the Collection. https://github.com/mongodb/mongo/blob/master/src/mongo/db/catalog/collection_impl.cpp#L1235

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-execution Backlog - Storage Execution Team
              Reporter:
              henrik.edin Henrik Edin
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: